Libraries & SDKs

Integrate news data into your applications with our official SDKs and libraries for popular programming languages.

Official SDKs

JavaScript SDK

AllNewsAPI SDK for the Javascript Programming language

Python SDK

AllNewsAPI SDK for the Python Programming language

Ruby SDK

AllNewsAPI SDK for the Ruby Programming language

Java SDK

AllNewsAPI SDK for the Java Programming language

PHP SDK

AllNewsAPI SDK for the PHP Programming language

Go SDK

AllNewsAPI SDK for the Golang Programming language

AI Integration

Model Context Protocol

Give your AI agent a live news feed

Connect Claude, Copilot, Cursor or any MCP client to real-time and historical news from 196 countries with a single config line

  • search-newsSearch News Articles
  • headlinesGet Top Headlines
  • usageCheck API Usage

Point your client at our hosted server — nothing to install.

mcp-config.json
{
  "mcpServers": {
    "allnewsapi": {
      "type": "remote",
      "url": "https://mcp.allnewsapi.com/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
https://mcp.allnewsapi.com/mcp?apikey=YOUR_API_KEY
  • Claude
  • VS Code
  • Cursor
  • Windsurf
  • Copilot