Mediastack News MCP Server
Click on "Install 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., "@Mediastack News MCP Serverget latest news about AI developments in the US"
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.
Mediastack News MCP Server
A FastMCP server that exposes the Mediastack News API as MCP (Model Context Protocol) tools. This server can be used as a plug-and-play backend for Smithery.ai or any other MCP-compatible agent platform.
⨠Features
get_latest_news: Fetches the most recent news stories with various filtering options.get_sources: Lists available news sources with filtering capabilities.
Related MCP server: GNews API MCP Server
š Installation
Clone this repository:
git clone <repository-url> cd NewsMCP_with_MediastackAPIInstall the required Python packages:
pip install -r requirements.txt
āļø Configuration
This server requires a Mediastack API key to function.
Get a free API key from mediastack.com.
Create a file named
.envin the project's root directory.Add your API key to this file in the following format:
MEDIASTACK_API_KEY=your_api_key_here
The server will automatically load this environment variable when a tool is called.
š» Running Locally
To start the MCP server, run the following command:
python server.pyBy default, the server will start on http://0.0.0.0:8080.
š ļø Available Tools
1. get_latest_news
Fetches the most recent news stories from Mediastack.
Parameters:
keywords(Optional): Search terms to filter news.sources(Optional): News sources, comma-separated (e.g., "cnn,bbc").countries(Optional): Country codes, comma-separated (e.g., "us,gb").languages(Optional): Language codes, comma-separated (e.g., "en,fr").categories(Optional): News categories, comma-separated.date(Optional): A specific date or date range (YYYY-MM-DD).sort(Optional): Sort order (published_desc,published_asc,popularity).limit(Optional): Maximum number of results to return (default: 25, max: 100).offset(Optional): Pagination offset.
2. get_sources
Lists available news sources from Mediastack.
Parameters:
search(Optional): A search term to filter sources.sources(Optional): Specific sources, comma-separated.countries(Optional): Country codes, comma-separated.languages(Optional): Language codes, comma-separated.categories(Optional): News categories, comma-separated.limit(Optional): Maximum number of results to return (default: 25, max: 100).offset(Optional): Pagination offset.
āļø Deployment on Smithery.ai
Push this repository to GitHub.
Connect your GitHub repository to Smithery.ai.
Smithery will automatically detect the
smithery.yamlconfiguration.Set your
MEDIASTACK_API_KEYin Smithery's environment variables.Deploy and start using the MCP tools.
For more information, visit the Smithery.ai Documentation.
š Project Structure
.
āāā app.py # MCP tool definitions
āāā server.py # FastMCP server setup
āāā requirements.txt # Python dependencies
āāā smithery.yaml # Smithery deployment configuration
āāā Dockerfile # Instructions for building a Docker image
āāā LICENSE # Project license
āāā .env # (Local) Environment variables
āāā README.md # This fileš License
This project is licensed under the MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables access to News Api14 for searching and retrieving news articles, publishers, and trending topics with filtering by country, language, category, and date.Last updated8MIT
- AlicenseAqualityDmaintenanceProvides access to global news articles from over 60,000 sources through the GNews API. Supports keyword search, category browsing, and language customization.Last updated217MIT
- Flicense-qualityDmaintenanceEnables fetching top headlines, searching news articles across 150,000+ sources, and listing available news sources via NewsAPI.Last updated
- Flicense-qualityDmaintenanceProvides access to the GNews API for searching news articles and retrieving top headlines with advanced filtering options.Last updated
Related MCP Connectors
Mediastack MCP ā wraps Mediastack API (api.mediastack.com/v1)
NewsData.io MCP ā wraps the NewsData.io global news API (newsdata.io)
NewsAPI.org: top headlines, archive search, sources. Free 100/day key.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rftsngl/NewsMCP_with_MediastackAPI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server