PEP MCP Server
Provides tools for searching and retrieving Python Enhancement Proposals (PEPs), including the ability to list active PEPs and fetch document excerpts or full content from the official Python PEP index.
Click on "Install 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., "@PEP MCP ServerSearch for PEPs related to type hinting"
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.
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
Related MCP server: PyPI Package MCP Server
Data Sources
PEP index JSON:
https://peps.python.org/api/peps.jsonPEP content:
https://raw.githubusercontent.com/python/peps/main/peps/pep-XXXX.rstFallback:
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-serveror:
.venv/bin/python -m pep_mcp_serverDocker
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:latestCursor 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 -qMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Flicense-qualityDmaintenanceEnables beginner-friendly Python and Pybricks development support through RAG-powered tools that search official documentation, suggest code snippets, and provide version-aware guidance for LEGO robotics programming.
- Alicense-qualityDmaintenanceEnables AI assistants to fetch, explore, and analyze source code from any Python package on PyPI, including listing files, reading specific code, and searching packages across all published versions.MIT
- Flicense-qualityDmaintenanceEnables AI assistants to search PyPI packages and retrieve detailed metadata, version history, and download statistics. It provides a standardized interface for interacting with the Python Package Index through the Model Context Protocol.2
- FlicenseAqualityDmaintenanceProvides Large Language Models with real-time access to the latest documentation for Python libraries like Langchain, LlamaIndex, and OpenAI, enabling accurate and up-to-date code suggestions.1
Related MCP Connectors
Get up-to-date, version-specific documentation and code examples from official sources directly in…
@latest documentation and code examples to 9000+ libraries for LLMs and AI code editors in a singl…
Search arXiv and ACL Anthology, retrieve citations and references, and browse web sources to accel…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ribbit-br/mcp-pep-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server