npx -y newsapi-mcpThe news tools exist.
Let’s put them to work.
Bring your NewsAPI.ai key. Choose your assistant, automation, or codebase. Follow the official tool’s setup with a little help from this community guide.
Connect your assistant with the official MCP package. Add NEWSAPI_KEY in your client configuration.
Full MCP setupA news toolkit
for your assistant.
The official newsapi-mcp package runs locally and connects to NewsAPI.ai. Use a compatible MCP client and Node.js 18 or newer.
Official setup & supported clients- Get your API key. Register at NewsAPI.ai and find your key in your account.
- Configure your client. The example below uses the
mcpServersformat for Claude Desktop and Cursor. Merge it into your client’s MCP configuration; keep any existing servers. - Replace the placeholder locally. Set
NEWSAPI_KEYto your key in your own configuration, then restart or reconnect your client. - Try a small request. Ask for recent articles on a specific topic, with dates and original links.
{
"mcpServers": {
"newsapi": {
"command": "npx",
"args": [
"-y",
"newsapi-mcp"
],
"env": {
"NEWSAPI_KEY": "YOUR_API_KEY"
}
}
}
}Using Claude Code?
claude mcp add newsapi -e NEWSAPI_KEY=YOUR_API_KEY -- npx -y newsapi-mcpUse the official README for VS Code, Gemini CLI, Windsurf, and other supported clients. Their configuration locations and formats can differ.
What tools does the official server expose?
suggest— resolve entities for filterssearch_articles— retrieve matching reportingsearch_events— find clusters of related coverageget_topic_page_articles— read saved-topic articlesget_topic_page_events— read saved-topic eventsget_api_usage— inspect account usage
Your workflow.
A news connection.
NewsAPI.ai’s n8n guides use native HTTP Request nodes with Event Registry credentials. Start with an n8n Cloud account or your own n8n instance.
Open the official n8n guide- Create a credential in n8n. Open Credentials, add a Custom Auth credential, and name it “Event Registry API”.
- Add your API key. Use the JSON below in the credential, replacing the placeholder inside n8n.
- Connect an HTTP Request node. Set Authentication to Generic Credential Type, choose Custom Auth, and select your credential.
- Follow an official workflow. Start with a manual run. Check your output and account usage before scheduling it.
{
"body": {
"apiKey": "YOUR_API_KEY"
}
}Turn a topic into an email research digest.
Follow the official alert workflow example.
Explore news sentiment in an n8n workflow.
NewsAPI.ai’s allowance covers its API usage. Your n8n hosting and any model services have their own plans.
Make room for news
in your codebase.
Use the provider’s libraries or call the REST API from your server. The official sandbox helps you explore filters before writing an integration.
Official package, examples, and source code.
Official JavaScript library for articles and events.
Build a request and inspect its parameters.