home / mcp / guardian mcp server
A MCP to connect LLMs to the archives of The Guardian
Configuration
View docs{
"mcpServers": {
"jbenton-guardian-mcp-server": {
"command": "npx",
"args": [
"guardian-mcp-server"
],
"env": {
"GUARDIAN_API_KEY": "YOUR_API_KEY"
}
}
}
}You can run a Guardian MCP Server to connect an LLM to The Guardian archives and access millions of articles via a simple MCP interface. This enables real-time headlines, journalism analysis, and rich historical research by querying The Guardian’s content through your language model pipelines.
Use the Guardian MCP Server to issue queries to The Guardian archives and retrieve metadata, headlines, summaries, or full articles for your AI workflows. You can search by keywords, dates, sections, and more, fetch individual articles, and explore related content or trends. Integrate the MCP endpoint into your client or application, then craft prompts that request the exact data you need, from quick headlines to full-text articles for analysis.
Prerequisites you need before installation are Node.js and npm on your machine.
Install and run the Guardian MCP Server with the following command.
npx guardian-mcp-serverConfigure a client to connect to the running MCP server using the sample MCP client configuration below. Replace YOUR_API_KEY with your actual Guardian Open Platform API key.
{
"mcpServers": {
"guardian": {
"command": "npx",
"args": ["guardian-mcp-server"],
"env": {
"GUARDIAN_API_KEY": "your-key-here"
}
}
}
}The Guardian MCP Server exposes a set of tools that you can use through your MCP client. Each tool corresponds to a specific API surface that you can call from your prompts to fetch data, articles, tags, timelines, and more. Ensure you provide your Guardian API key for access to the archives.
Search the Guardian archive for articles with control over detail level to balance response size and content richness.
Retrieve an individual Guardian article by its identifier or URL, with options to truncate or return full content.
Search through Guardian’s hand-assigned tags to categorize results and improve topic targeting.
Find articles similar to a given article by analyzing shared tags and overlap in topics.
Return tags assigned to a specific Guardian article for tagging and later analysis.
Perform historical searches by date to explore content from a past period.
Analyze Guardian content on a topic over a defined time range and interval.
Estimate editorial importance for a subset of stories by date when native ranking is insufficient.
Compare multiple topics over time using correlation analysis and rankings.
Generate profiles of Guardian journalists and their coverage for a given period.
Search The Guardian Long Read series for longform features.
Browse recent articles from a specific Guardian section.
Fetch all available Guardian sections.
Filter articles by word count to target concise or extensive content.
Search articles by byline to study a journalist’s output.
Provide personalized Long Read recommendations based on user interests.