remote-mcp-fastapi
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@remote-mcp-fastapisearch for latest news about AI"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Remote - MCP Server using FAST API
A FastMCP server that exposes news tools powered by the GNews API, plus a mocked email MCP toolset.
What this project does
This server provides two MCP tool groups:
newsvianews_mcp.pyemailviaemail_mcp.py
The news MCP service exposes:
search_news(...)to search articles by keyword and filterstop_headlines(...)to fetch current top stories by category
The email MCP service exposes:
get_emails()to return mocked email datawrite_email(recipient, subject, body)to simulate sending an email
The FastAPI application mounts the MCP tools at:
/newsfor the news MCP server/emailfor the email MCP server
Related MCP server: GNews MCP Server
Requirements
Python 3.14+
uvA GNews API key
Setup
Install dependencies
uv syncCreate a
.envfile in the project root with your API key:GNEWS_API_KEY=your_gnews_api_key_hereIf an existing
.envfile is present, the project will load it automatically fromnews_mcp.py.Start the server
uv run python main.py
The server runs with the streamable-http transport.
Available tools
search_news
Search news articles with filters such as language, country, keywords, date range, and sorting.
Example:
search_news(q="OpenAI", lang="en", country="us", max=5)top_headlines
Get top headlines for a category such as general, business, technology, health, and more.
Example:
top_headlines(category="technology", country="us", max=5)Debugging with MCP Inspector
Start the Inspector:
npx @modelcontextprotocol/inspectorConnect using the
streamable-httptransport.Use the server URL:
http://127.0.0.1:10000/news/mcphttp://127.0.0.1:10000/email/mcp
If your local port differs, adjust the URL accordingly.
VS Code MCP configuration
You can connect this server to VS Code by adding a configuration similar to the following to your MCP settings:
{
"servers": {
"news-mcp-server": {
"type": "http",
"url": "http://127.0.0.1:10000/news/mcp"
}
}
}Troubleshooting
Make sure
GNEWS_API_KEYis set correctly in your.envfile.Confirm the server is running before connecting from the inspector or VS Code.
If the inspector cannot connect, verify that the server URL includes
/mcp.
This server cannot be deployed
Maintenance
Related MCP Connectors
News, web search, mail, markets, weather, places, files, calendar, contacts. 67 tools, one endpoint.
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Give an AI agent its own email address: send, reply, read, and wait for mail.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables searching news articles and retrieving top headlines from the GNews API with support for filtering by topic, language, and country.-
- FlicenseNot gradedqualityDmaintenanceEnables searching news articles and fetching top headlines via GNews API with filtering options.-
- FlicenseNot gradedqualityCmaintenanceProvides access to the GNews API for searching news articles and getting top headlines, with support for advanced query syntax, filtering, and pagination.-
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to read Google News without internet access, providing tools for top headlines, topic search, and news searches.-