media-cloud-mcp
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., "@media-cloud-mcp How much did US media cover climate change in November 2023?"
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.
media-cloud-mcp
An MCP server for Media Cloud, the open archive of online news used for media research. It lets an AI assistant measure how much attention news media pay to a topic, compare sources and countries, examine the language of coverage, and find story URLs.
This is an independent project, not an official Media Cloud product. It is built on the official mediacloud Python client.
Setup
You need uv and a Media Cloud API key. You don't need to install Python or this package yourself: uvx downloads whatever is missing the first time the server starts.
1. Install uv
On macOS or Linux:
curl -LsSf https://astral.sh/uv/install.sh | shOn Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Then open a new terminal, so that it can find the uvx command.
2. Get a Media Cloud API key
Sign in to Media Cloud, click the person icon at the top right, choose Profile, and copy your API key.
3. Add the server to your MCP client
For Claude Code, run:
claude mcp add media-cloud --env MC_API_KEY=your-api-key -- uvx media-cloud-mcpFor Claude Desktop and other clients that use a JSON configuration, add this to the configuration file. In Claude Desktop, that's claude_desktop_config.json, which you can open from Settings > Developer > Edit Config.
{
"mcpServers": {
"media-cloud": {
"command": "uvx",
"args": ["media-cloud-mcp"],
"env": { "MC_API_KEY": "your-api-key" }
}
}
}Restart the client after changing its configuration. You don't need to start the server yourself, because the client does that. If you run uvx media-cloud-mcp in a terminal, it waits silently for a client to connect, so it can look frozen. Press Ctrl+C to stop it.
4. Check that it works
Ask your assistant to run the check_connection tool.
Troubleshooting
The client can't find
uvx: desktop apps may not use the samePATHas your terminal. Runwhich uvx(on Windows,where uvx) and use the full path it prints as thecommand.The server times out the first time it starts: the first start downloads Python and the dependencies, which can take a while on a slow connection. Restart the client to retry. Downloads are cached, so later starts are faster.
MC_API_KEY is not setor HTTP 401: check that the key is in your client's configuration and was copied correctly, then restart the client.
Using pip instead
With Python 3.11 or newer, you can run pip install media-cloud-mcp and use media-cloud-mcp as the command, with no arguments.
Related MCP server: news-sentiment-mcp
Tools
All tools are read-only.
Tool | What it does |
| Verifies the API key and shows API parameters such as rate limits |
| Matching stories, total stories in scope, and their ratio |
| Daily counts and ratios |
| Counts and ratios per source, per day or week |
| Story metadata and URLs, with pagination |
| A random sample of matching stories |
| Metadata for one story |
| Most used terms in a sample of matching stories |
| Sources publishing the most matching stories |
| Most common languages among matching stories |
| Find collections, often by country or state |
| Details of one collection |
| Find sources by name or domain, or list a collection's sources |
| Details of one source |
| RSS feeds Media Cloud collects from |
The mediacloud://query-guide resource documents the query syntax. The server also sends it to the assistant as part of its instructions.
Example prompts
"How much did US national media cover climate change in November 2023 compared with Indian national media?"
"Which Nigerian news sources wrote the most about fuel subsidies last year?"
"Chart the weekly share of stories about 'artificial intelligence' in the Washington Post in 2024."
"What words most often appear in coverage of the housing crisis in Boston Globe stories?"
Limits
Story text: Media Cloud returns metadata and URLs. Copyright restrictions keep full text limited to accounts with elevated access.
Rate limit and quota: requests are rate limited per account, and the client library waits when it reaches the limit, so a burst of calls can be slow. Your account also has a weekly quota. Contact Media Cloud if you need more.
Development
uv sync
uv run pytest
uv run ruff check .Tests replace only the HTTP layer and don't need an API key. To try the server interactively:
MC_API_KEY=your-api-key uv run media-cloud-mcpLicense
MIT
Available Tools
15 toolscheck_connectionCheck connectionARead-only
Verify that the API key works and show the server's API parameters, such as rate limits.
Inputs: no named parameters. Returns: object
count_storiesCount storiesARead-only
Count stories matching a query.
Returns relevant (stories matching), total (all stories in the same scope and dates) and
ratio (relevant / total). Compare ratios, not raw counts, across sources or collections.
Inputs: query (required), end_date (required), start_date (required), source_ids, +1 more. Returns: object
count_stories_by_source_over_timeCount stories by source over timeARead-only
Compare attention across sources: matching stories, total stories and ratio per bucket.
Returns one row per source per time bucket, so a large collection can produce many rows.
truncated says whether rows were dropped to fit max_rows.
Inputs: query (required), end_date (required), start_date (required), interval, +3 more. Returns: object
count_stories_over_timeCount stories over timeBRead-only
Get daily counts for a query: date, count, total_count and ratio for each day.
Inputs: query (required), end_date (required), start_date (required), source_ids, +1 more. Returns: object
get_collectionGet collectionCRead-only
Get details of one collection.
Inputs: collection_id (required). Returns: object
get_sourceGet sourceCRead-only
Get details of one media source.
Inputs: source_id (required). Returns: object
get_storyGet storyARead-only
Get one story's metadata. Full text is only included for accounts with elevated access.
Inputs: story_id (required). Returns: object
list_feedsList feedsBRead-only
List the RSS feeds Media Cloud collects from.
Inputs: limit, offset, source_id, modified_since, +1 more. Returns: object
list_storiesList storiesBRead-only
List stories matching a query: ID, title, URL, publication date, language and source.
Repeat with pagination_token to get more. next_page_token is null on the last page.
Inputs: query (required), end_date (required), start_date (required), page_size, +6 more. Returns: object
sample_storiesSample storiesARead-only
Get a random sample of stories matching a query, for a quick read of the coverage.
Inputs: query (required), end_date (required), start_date (required), limit, +2 more. Returns: object
search_collectionsSearch collectionsBRead-only
Find collections, which are groups of sources, often by country or state.
Inputs: name, limit, offset, platform, +1 more. Returns: object
search_sourcesSearch sourcesARead-only
Find media sources by name or domain, or list the sources in a collection.
Inputs: name, limit, offset, platform, +1 more. Returns: object
top_languagesTop languagesCRead-only
Get the most common languages among stories matching a query.
Inputs: query (required), end_date (required), start_date (required), limit, +2 more. Returns: object
top_sourcesTop sourcesARead-only
Get the media sources publishing the most stories that match a query.
Inputs: query (required), end_date (required), start_date (required), limit, +2 more. Returns: object
top_wordsTop wordsARead-only
Get the most used terms in a sample of matching stories, to study framing.
Terms are stemmed; each is shown in its most common form.
Inputs: query (required), end_date (required), start_date (required), limit, +2 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
The three count tools (count_stories, count_stories_over_time, count_stories_by_source_over_time) are separated by the temporal/source dimension, which descriptions make clear, and list_stories vs. sample_stories vs. get_story are cleanly distinct. Minor overlap remains between top_sources (ranked by matching query) and search_sources (lookup by name/domain), and between list_feeds and search_sources, but descriptions disambiguate them.
Nearly all tools follow a verb_noun pattern (list_stories, get_story, search_collections, count_stories), with parallel noun groups for sources, collections and stories. The top_words/top_sources/top_languages trio deviates from the verb-first convention, though it is internally consistent and readable.
Fifteen tools is well within the sweet spot for an analytics API and each tool covers a distinct query dimension (aggregate, temporal, per-source, sample, metadata, ranking, lookup). No tool looks redundant or filler.
The surface covers the main Media Cloud workflow: connection check, story discovery/counts/sampling, framing analysis, source and collection lookup, and feed listing. Minor gaps exist for feeds (list only, no get_feed) and for richer story attributes (themes/tags), but core research workflows are fully supported.
Maintenance
Related MCP Connectors
Give your AI assistant access to the world’s news. Search articles in any language, track coverage over time, and research companies and events.
Search and analyze global news coverage and US TV transcripts via the GDELT Project APIs.
Search worldwide online news, track mention volume and tone over time, and watch saved queries.
Search news in any language, track coverage over time, and research companies and events.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides news sentiment scores, media volume trends, and historical coverage data for any topic, enabling AI to analyze positive or negative coverage over time.1MIT
- AlicenseAqualityDmaintenanceProvides news sentiment scores and media volume trends for any topic, enabling AI assistants to analyze whether news coverage is positive or negative.31MIT
- AlicenseAqualityCmaintenanceEnables users to query news mention volume time series, growth percentages, and live Google News feeds as an MCP tool, integrating with AI hosts like Claude and Cursor.3MIT

hamir MCP serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to search and monitor news coverage, fetch article metadata, explore curated source packs, and save links to hamir with notes.1MIT