# ap-mcp-server [Health: Active]

**Category:** 🛠️ Other Tools and Integrations  
**Repository:** https://github.com/rbonestell/ap-mcp-server  
**GitHub Stars:** 2  
**npm Downloads (last month):** 247  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ap-mcp-server

## Description
Model Context Protocol (MCP) server for the Associated Press Media API

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ap-mcp-server": {
    "command": "npx",
    "args": ["-y","ap-mcp-server@latest"],
    "env": {
      "AP_API_KEY": "",
      "AP_BASE_URL": "",
      "AP_TIMEOUT": "",
      "AP_RETRIES": "",
      "AP_ENFORCE_PLAN": "",
      "AP_DEBUG": "",
      "AP_LOG_LEVEL": "",
      "AP_CACHE_ENABLED": ""
    }
  }
}
```

**Requires environment variables:** `AP_API_KEY`, `AP_BASE_URL`, `AP_TIMEOUT`, `AP_RETRIES`, `AP_ENFORCE_PLAN`, `AP_DEBUG`, `AP_LOG_LEVEL`, `AP_CACHE_ENABLED` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What ap-mcp-server MCP server does

The ap-mcp-server MCP server exposes the Associated Press Media API to MCP-compatible AI applications. It gives an assistant a structured way to search AP content, retrieve current news, discover related material, examine trends, and work with content monitoring features.

The project is described as unofficial and requires access to the AP Media API. Its intended uses include news chatbots, research assistants, automated news analysis, content discovery, and journalism workflows. Natural-language requests can be translated by the connected AI client into searches and other API operations.

## How it works

The server runs as a Node.js process and communicates with an MCP client over standard input/output. A client starts it with `npx`, passes the AP API key through the environment, and then makes MCP tool calls on behalf of the user or application.

Search requests can use multiple parameters and support filtering and sorting. The implementation also provides automatic pagination for larger result sets, caching with configurable time-to-live values, retries for failed requests, and handling for API rate limits.

The server includes 17 prompt templates for common workflows, including breaking-news searches, topic research, and multimedia discovery. These prompts reduce the need for an AI client to construct every API parameter directly.

## Setup and configuration

Node.js 18 or newer and an Associated Press API key are required. Install-time configuration can use the npm package through a client definition such as:

```json
{
  "command": "npx",
  "args": ["-y", "ap-mcp-server@latest"],
  "env": {
    "AP_API_KEY": "your_api_key_here"
  }
}
```

`AP_API_KEY` is required. `AP_BASE_URL` defaults to `https://api.ap.org/media/v`; `AP_TIMEOUT` defaults to 30,000 milliseconds; and `AP_RETRIES` defaults to three attempts. Plan enforcement is enabled by default through `AP_ENFORCE_PLAN`. Debugging, log level, verbose request logging, caching, and separate cache durations for trends and search results can also be configured with environment variables documented by the project.

## Tools and capabilities

The ap-mcp-server MCP server provides 26 tools covering the AP Media API. Supported capability areas described in the README include:

- Searching AP content with flexible parameters, filters, and sorting
- Accessing live news feeds and updates
- Identifying trending topics
- Finding related articles and content recommendations
- Creating and managing content alerts and monitors
- Processing larger result sets through pagination and bulk operations
- Refining broad searches with query suggestions and optimization
- Recovering from API errors with retry guidance and rate-limit hints

The included prompts cover common tasks such as recent breaking-news searches, topic deep dives, and searches for photos, videos, graphics, or audio.

## Limitations and notes

This project is an unofficial interface to the Associated Press Media API, so API access, plan permissions, rate limits, and available content remain dependent on AP. The default plan-enforcement setting adds `in_my_plan=true` to content requests, although that behavior can be configured.

Clients therefore need to be able to launch a local Node.js command. An API key must be supplied, and requests may be affected by AP service availability, configured timeouts, retry limits, and cache settings.

_Full upstream README: https://allmcps.com/mcp/ap-mcp-server/readme_

