Model Context Protocol (MCP) server for the Associated Press Media API
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An unofficial Model Context Protocol (MCP) server that transforms the Associated Press Media API into an AI-optimized content intelligence resource. With 26 powerful tools, this MCP server enables conversational AI applications to seamlessly access, analyze, and interact with AP's comprehensive news content through natural language interfaces.
Perfect for: Conversational AI assistants, news analysis applications, content research tools, and automated journalism workflows.
[!NOTE] For more info about the AP Media API, visit the AP developer documentation.
AP_ENFORCE_PLAN)Add to your Claude Code MCP configuration:
For VS Code, Windsurf, Cursor, Void, and other VS Code-based editors:
Add the following server definition to your workspace MCP settings (.vscode/mcp.json):
Applies to Claude Desktop, ChatGPT Desktop, OpenAI Codex, etc.
For most MCP-compatible AI tools, use this standard configuration format:
The AP MCP Server is designed to be used directly by AI tools, chatbots, and LLM applications through the MCP protocol. AI assistants can access AP news content using natural language:
AI tools automatically convert these requests into the appropriate MCP tool calls.
| Variable | Required | Default | Description |
|---|---|---|---|
AP_API_KEY | โ | - | Your AP API key |
AP_BASE_URL | ๐ซ | https://api.ap.org/media/v | AP API base URL |
AP_TIMEOUT | ๐ซ | 30000 | Request timeout (ms) |
AP_RETRIES | ๐ซ | 3 | Retry attempts for failed requests |
AP_ENFORCE_PLAN | ๐ซ | true | Enforce in_my_plan=true for all content requests (AI safety feature) |
AP_DEBUG | ๐ซ | false | Enable debug logging |
AP_LOG_LEVEL | ๐ซ | info | Log level (error, warn, info, debug) |
AP_VERBOSE_LOGGING | ๐ซ | false | Enable request/response logging |
AP_CACHE_ENABLED | ๐ซ | true | Enable intelligent caching system |
AP_CACHE_TTL_TRENDS | ๐ซ | 300000 | Trending topics cache TTL (5 minutes) |
AP_CACHE_TTL_SEARCH | ๐ซ | 180000 | Search results cache TTL (3 minutes) |
The AP MCP Server now includes intelligent prompt templates that simplify complex operations and optimize API usage. These prompts abstract away parameter complexity and provide natural language interfaces for common workflows.
breaking-news-searchSearch for the latest breaking news with optimized parameters.
topic, hours_ago, location, max_resultstopic-deep-diveComprehensive research on a specific topic with in-depth coverage.
topic, days_back, min_word_count, include_analysis, max_resultsmultimedia-searchFind photos, videos, graphics, and audio content.
topic, media_type, days_back, high_quality_only, max_resultsregional-coverageGet comprehensive news coverage for specific regions or locations.
location, include_national, include_local, days_back, max_resultssmart-searchIntelligently search with natural language queries and auto-expansion.
query, search_mode, auto_expandtrend-analysisAnalyze trending topics and patterns in news coverage.
category, timeframe, location_filter, include_sentiment, max_topicsNo reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ap-mcp-server)<a href="https://allmcps.com/mcp/ap-mcp-server"><img src="https://allmcps.com/api/badge/ap-mcp-server?style=directory" alt="Ap MCP Server on AllMCPs" /></a>