SuperAPIAI Directory

mcp-server

github.com · AI developer platforms

Real-time and historical news data, including top headlines from global sources, via AllNewsAPI.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

Purpose

The AllNewsAPI MCP server is used to let MCP clients access AllNewsAPI's real-time and historical news data, including headlines from global sources. It is intended for clients that support the Model Context Protocol, such as Claude, Cursor, VS Code, Windsurf, and others.

Main capabilities

  • Search articles by keyword, date, and filters.
  • Get headlines, with optional additional filters.
  • Check plan, request limits, and remaining quota (no parameters).

Search and headline features support AI analysis filters:

  • ai_sentiment: overall article sentiment (positive, negative, neutral).
  • ai_entity_name: named entities in the article (for example, United Nations).
  • ai_entity_type: entity categories (person, organization, location).

Returned articles may also include AI sentiment scores, detected entities, and brief AI summaries when available.

How to use

An API key is required and can be obtained at allnewsapi.com. Two connection methods are supported:

  1. Hosted (no installation required): point the client to the hosted server and pass the API key via the X-API-Key request header. If you prefer a URL-only configuration, you can use https://mcp.allnewsapi.com/mcp?apikey=YOUR_API_KEY_HERE instead of the request header. The API key can be provided in the following priority order:X-API-Key request header,apikey query parameter, or Authorization: Bearer YOUR_API_KEY_HERE request header (as a fallback for clients that only support bearer tokens).
  2. Local: run the server on your machine via npx, with no need to clone or build. You can also use the ALLNEWSAPI_KEY environment variable instead of --apikey to provide the key.

Client configuration:

  • Claude: edit the configuration (Settings → Developer → Edit Config) and add the local or hosted snippet above. Full guide: modelcontextprotocol.io/quickstart/user.
  • Cursor: Settings → MCP → Add new MCP Server, name it "AllNewsAPI", choose the command type, and enter the corresponding content.
  • VS Code: the server is then available to the GitHub Copilot agent. Full guide: VS Code MCP docs.
  • Windsurf: add the local or hosted snippet to the MCP configuration. Full guide: Windsurf MCP docs.
  • Add from terminal—local: or hosted server.
  • Cowork: runs inside Claude Desktop, add the hosted server as a custom connector—Customize → Connectors → +, enter the URL with the key; for local setup, use the Claude Desktop configuration above.
  • OpenWork: an open-source Cowork alternative that supports MCP. You can use the local command (npx allnewsapi-mcp@latest --apikey YOUR_API_KEY_HERE) or the hosted URL above, and add AllNewsAPI according to OpenWork's MCP configuration.
  • Any other MCP client: point to the hosted URL (https://mcp.allnewsapi.com/mcp) or run the npx allnewsapi-mcp@latest command with your API key.

Example prompts:

  • "Get me the latest technology news from the US"
  • "Find articles about climate change from European sources"
  • "Show me top business headlines from the past week"
  • "Find positive news about renewable energy"
  • "Show me articles mentioning Apple as an organization"
  • "Check my API usage and remaining quota"

Use cases

Suitable for scenarios that require retrieving global news directly within an MCP-compatible client, finding coverage by keyword or topic, getting headlines for a specific time range, filtering with AI analysis by sentiment or entity, and checking API quota usage.

Limitations

Some advanced filters—country、region、category、publisher、lang、attributes and sortby—require a paid plan. On the free plan, please use search-news with q and max. See its pricing page for pricing details. The complete list of acceptable values is located in the AllNewsAPI documentation.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools