About GNews
GNews is a hosted MCP server that connects compatible clients to the GNews API. It offers keyword-based article search and headline retrieval by category and country, using an API key.
Key features
- 01Search articles by keywords
- 02Retrieve top headlines
- 03Filter headlines by category and country
- 04Connect through hosted HTTP endpoint
Use cases
- 01Find recent articles about a topic
- 02Retrieve technology headlines for a country
MCP support
The server exposes GNews API search and headline tools to MCP clients over HTTP. Requests require an API key sent in the `X-Api-Key` header.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.gnews.io/claude mcp add --transport http gnews-io-gnews https://mcp.gnews.io/{"mcpServers":{"gnews-io-gnews":{"type":"http","url":"https://mcp.gnews.io/"}}}Open in Cursor{"servers":{"gnews-io-gnews":{"type":"http","url":"https://mcp.gnews.io/"}}}Open in VS Code{"mcpServers":{"gnews-io-gnews":{"type":"http","url":"https://mcp.gnews.io/"}}}{"mcpServers":{"gnews-io-gnews":{"serverUrl":"https://mcp.gnews.io/"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://mcp.gnews.io/Auth requiredTools
2| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | |
| max | integer | No | |
| lang | any | No | |
| page | integer | No | |
| sortby | enum | No | publishedAt | relevance |
| country | any | No | |
| date_to | any | No | |
| date_from | any | No | |
| in_fields | any | No |
Details
From the project README📡 GNews API MCP Server
This document describes a Model Context Protocol (MCP) server that exposes the GNews API.
This server is already deployed and publicly accessible, so you don't need to install anything. You just need to connect it to your compatible MCP client (Claude Code, Gemini CLI, etc.).
🔑 GNews API Key
To use this server, you need a valid GNews API key.
The API key must be provided in the following way:
- Via an HTTP header
X-Api-Key
🔗 MCP Integration
This server is listed in the official MCP Registry as io.github.gnews-io/gnews.
With Claude Code
Add the server to your Claude Code configuration with the following command:
claude mcp add --transport http gnews_api https://mcp.gnews.io/ --header "X-Api-Key: YOUR_API_KEY"
🛠️ Available Tools
Once the server is connected, the following two tools are available:
- search: Search for news articles through a combination of keywords.
- top_headlines: Get top headlines by category and country.
📄 Usage Examples
Search for articles
This example searches for the 5 latest English articles on climate change:
{
"tool": "search",
"args": {
"q": "climate change",
"lang": "en",
"max": 5
}
}
Get latest headlines
This example retrieves the 5 top headlines from the "technology" category in the United States:
{
"tool": "top_headlines",
"args": {
"category": "technology",
"country": "us",
"max": 5
}
}
🔒 Security
- Never share your API key. Treat it like a password.
- This server acts as a proxy: it does not store any API keys. Your key is transmitted directly to GNews API with each request.
- Always use an HTTPS connection to communicate with the server to ensure your key is encrypted in transit.
- The hosted server records anonymous usage statistics for each tool call: tool name, MCP client name and version, success or error, duration, and the
lang,country,category,max,pageandsortbyparameters. Your API key is only recorded as a one-way hash, and your search queries are never recorded.
📋 Client Prerequisites
- A compatible MCP client (e.g., Claude Code).
- The latest version of Gemini CLI is recommended for optimal compatibility.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.