MCP Server
Connect your AI assistant to the MCP (Model Context Protocol) server to search the News API in plain language. For example, ask "find me the latest AI news" to get matching articles.
What is MCP Server?
MCP lets assistants such as Cursor and Claude Desktop call external tools. After you connect APITube, your assistant can build search requests and read the results for you.
Use the hosted server at https://mcp.apitube.io/. You do not need to install a server.
Use cases:
- Search for news articles directly from your AI assistant
- Filter news by language, sentiment, topics, and more
- Get breaking news stories
- Research specific topics without leaving your IDE
Add the hosted server to your assistant's settings with your API key to get started.
How to Connect
Step 1: Get API Key
Get your API key from APITube:
- Sign up on apitube.io
- Get your personal API key
- Keep it secure
Step 2: Configure MCP Client
Add the MCP server to your AI assistant's configuration. The hosted server speaks HTTP JSON-RPC, so pass your API key in the Authorization header.
On Cursor or VS Code you can skip the config file entirely — the Code Editors Setup page builds an install link with your key already in it.
For Cursor (~/.cursor/mcp.json, or .cursor/mcp.json in a project):
{
"mcpServers": {
"apitube-news": {
"url": "https://mcp.apitube.io/",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS). Claude Desktop launches MCP servers as local processes, so bridge the remote server with mcp-remote:
{
"mcpServers": {
"apitube-news": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.apitube.io/",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}Setting up VS Code, Windsurf, or Claude Code instead? See Code Editors Setup for per-editor instructions.
Step 3: Restart Your AI Assistant
Save the configuration and restart Cursor or Claude Desktop.
How to Use
After connecting, ask your assistant for news:
Basic Examples
Search for news:
Find me the latest news about artificial intelligenceFilter by language:
Show me news about Bitcoin in EnglishGet breaking news:
What are the breaking news stories right now?Search with sentiment:
Find positive news about TeslaAdvanced Queries
The AI assistant can handle complex queries with multiple filters:
Multiple filters:
Find breaking news about climate change from verified sources published todaySpecific requirements:
Show me long-form articles about SpaceX with images, published in the last weekEntity search:
Find news mentioning Elon Musk and TeslaAvailable Features
The MCP server supports all News API features:
- Search by title/keywords - Find articles matching specific terms
- Language filtering - Filter by language (English, Russian, etc.)
- Sentiment analysis - Filter by positive, negative, or neutral sentiment
- Date ranges - Search within specific time periods
- Media filtering - Find articles with images or videos
- Source quality - Filter by verified or premium sources
- Breaking news - Get only breaking news stories
- Entity search - Find news about specific people, organizations, or locations
- Topic/Category filtering - Filter by predefined topics and categories
Technical Details
How It Works
- You ask a question in natural language
- The AI assistant converts it to an MCP tool call
- MCP server translates it to a News API request
- Results are returned to the AI assistant
- The AI formats and presents the news to you
API Endpoints
- JSON-RPC endpoint:
POST https://mcp.apitube.io/ - Protocol version: latest
2025-11-25; the server negotiates down to the version your client requests (older versions such as2024-11-05remain supported) - Server version:
1.0.0
Available Tools
The MCP server provides the following tools:
- search_news - Search for news articles with advanced filtering by language, category, sentiment, entities, media content, and more
- suggest - Resolve a name or prefix (e.g. "Tesla") to APITube entity/category/topic/industry IDs, so you can use them in the
search_newsfilters (entity.id,category.id,topic.id,industry.id)
Available Prompts
Ready-made query templates (slash commands in MCP clients), built on top of the tools above:
- monitor_company - Track recent news and sentiment about a company
- topic_sentiment - Break down the sentiment of coverage about a topic
- breaking_news - Get the latest breaking news, optionally filtered by subject and country
- compare_coverage - Compare volume and sentiment of coverage for two subjects
Authentication
The client sends the API key from your configuration in the request headers.
Troubleshooting
Testing Server Connection
Check if the server is available:
curl -X POST https://mcp.apitube.io/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {"name": "test", "version": "1.0.0"}
},
"id": 1
}'Expected response:
{
"jsonrpc": "2.0",
"result": {
"protocolVersion": "2024-11-05",
"serverInfo": {
"name": "APITube News MCP-Server",
"version": "1.0.0"
},
"capabilities": {
"tools": {"listChanged": true},
"prompts": {"listChanged": true}
}
}
}API Key Issues
If you see authentication errors:
- Verify your API key is correct on apitube.io
- Check the configuration file syntax
- Send your key in the
Authorization: Bearer YOUR_API_KEYheader. For Cursor, add it toheaders. For Claude Desktop, pass it with--headertomcp-remote. - Restart your AI assistant
- Try testing with curl to verify the API key works
Specific authentication errors:
401with codeER0230— your API key has expired. Check or extend the key's expiry date in your API key settings.403with codeER0603— your API key is not allowed to call the MCP tools (search_news,suggest). Grant the key the matching permissions in its settings, or use a key that has full access.503with codeER0900means the server could not check your key. Wait a few seconds and retry. You do not need to replace the key.403with codeER0706— the MCP server is not available on the Free plan. Upgrade the subscription to use it.
Connection Problems
If you can't connect to https://mcp.apitube.io/:
- Check your internet connection
- Verify firewall settings
- Try accessing the URL in a browser
Testing with a Real Query
Test with actual news search:
curl -X POST https://mcp.apitube.io/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_news",
"arguments": {
"title": "Bitcoin",
"per_page": 5
}
},
"id": 1
}'Alternative: Direct HTTP Access
You can also use the MCP server as a regular HTTP API without an AI assistant:
curl -X POST https://mcp.apitube.io/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_news",
"arguments": {
"title": "AI technology",
"language": {"code": "en"},
"is_breaking": 1
}
},
"id": 1
}'Use https://mcp.apitube.io/ directly without running your own server.
Next Steps
- Check out common workflows for query examples
- Learn about available parameters
- Explore authentication options
Support
If you encounter issues:
- Check the Technical FAQ
- Verify your API key on apitube.io
- Check the error message returned by your MCP client
- Contact support through the APITube website