PEP MCP Server
Provides tools to search, list, and retrieve Python Enhancement Proposals (PEPs) directly from official sources like peps.python.org. It enables users to query active PEP titles and fetch document content or focused excerpts through natural language.
README
PEP MCP Server
MCP server that exposes on-demand Python PEP lookup tools backed by the live PEP index.
Features
list_peps: list only active PEPssearch_peps: search active PEP titlesget_pep: fetch a PEP document by number, optionally returning focused excerpts for a query
Data Sources
- PEP index JSON:
https://peps.python.org/api/peps.json - PEP content:
https://raw.githubusercontent.com/python/peps/main/peps/pep-XXXX.rst- Fallback:
https://github.com/python/peps/blob/main/peps/pep-XXXX.rst?plain=1
Setup
python -m venv .venv
.venv/bin/pip install -e ".[dev]"
Run
.venv/bin/pep-mcp-server
or:
.venv/bin/python -m pep_mcp_server
Docker
Build and tag:
docker build -t pep-mcp-server:latest .
MCP uses stdio, so the container must keep stdin open (-i). Example:
docker run --rm -i pep-mcp-server:latest
Cursor MCP (Docker)
You do not put PEP or GitHub URLs in mcp.json. Cursor only needs the command that runs the server; listing and fetching PEPs happens inside the process when tools run.
Use -i (required for stdio). Optional -e lines silence the startup banner and pin transport:
{
"mcpServers": {
"pep": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"FASTMCP_TRANSPORT=stdio",
"-e",
"FASTMCP_SHOW_SERVER_BANNER=false",
"pep-mcp-server:latest"
]
}
}
}
If the image is not on this machine yet, build it once from the project directory (see above).
If the MCP log shows Found 0 tools but listOfferingsForUI / Not connected warnings, that is often a Cursor UI race or a separate UI listing path; try reloading the window or invoking a tool from chat. The server still exposes three tools over stdio (verified with the MCP Python client).
Tool Contracts
list_peps() -> list[dict]
Returns active PEPs with:
numbertitletypetopiccreatedurl
(status is omitted; every row is active.)
search_peps(query: str) -> list[dict]
Case-insensitive substring search on active PEP titles.
get_pep(pep, query=None, max_full_content_chars=None) -> dict
- Accepts
8,0008, orpep-0008. - Returns metadata and:
contentwhenqueryis not provided (capped by default for token efficiency)excerptwhenqueryis provided and matchescontentfallback whenqueryhas no matches (also capped by default)
- Optional
max_full_content_chars: omit orNonefor the default cap; use0for the full document (can be very large).
Tests
.venv/bin/pytest -q
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.