krpc-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
krpc-mcp
An MCP server that gives AI models access to the full kRPC Python documentation.
What is this?
If you use AI assistants (Claude, ChatGPT, Codex, etc.) to write kRPC Python code for Kerbal Space Program, the models often guess or hallucinate API calls because kRPC's documentation is uncommon in their training data. This MCP server solves that by letting the AI query the real documentation before writing code.
The server crawls and indexes all kRPC Python API pages, caches them locally, and exposes them through 4 search/retrieval tools via the Model Context Protocol.
Related MCP server: Documentation Fetcher & RAG Search
Quick Start
Pick your AI client below and run the setup command. That's it -- the AI will automatically have access to kRPC docs.
Claude Code (CLI)
claude mcp add krpc-mcp -- uvx krpc-mcpOpenAI Codex CLI
codex mcp add krpc-mcp -- uvx krpc-mcpOr add it manually to ~/.codex/config.toml:
[mcp_servers.krpc-mcp]
command = "uvx"
args = ["krpc-mcp"]Claude Desktop
Add this to your claude_desktop_config.json:
OS | Config file location |
macOS |
|
Windows |
|
{
"mcpServers": {
"krpc-mcp": {
"command": "uvx",
"args": ["krpc-mcp"]
}
}
}Cursor
Add this to .cursor/mcp.json in your project root:
{
"mcpServers": {
"krpc-mcp": {
"command": "uvx",
"args": ["krpc-mcp"]
}
}
}Other MCP clients
Any MCP client that supports stdio transport can use this server. The command is:
uvx krpc-mcpAlternative Installation
If you don't have or don't want to use uvx, there are other ways to install.
pip install from GitHub
pip install git+https://github.com/Ljove02/krpc-mcp.gitThen use krpc-mcp as the command in any of the configs above (instead of uvx krpc-mcp).
Manual setup (for development)
git clone https://github.com/Ljove02/krpc-mcp.git
cd krpc-mcp
python -m venv .venvActivate the virtual environment:
# macOS / Linux
source .venv/bin/activate
# Windows (PowerShell)
.\.venv\Scripts\Activate.ps1
# Windows (cmd)
.venv\Scripts\activate.batInstall and run:
pip install -e .
krpc-mcpAvailable Tools
Once connected, your AI assistant gets these tools:
Tool | Parameters | Description |
|
| Search all indexed kRPC Python docs by keyword. Returns matching pages with snippets. |
|
| Get the full content of a specific docs page. Accepts a slug like |
|
| Look up a specific API member. For example: |
|
| Manually trigger a re-crawl of the kRPC documentation. |
Example: Real Usage
Here's what it looks like when an AI assistant uses krpc-mcp. In this test, Claude Code was asked about vessel launch telemetry data.
User prompt
"Give me info about all kinds of data we can get from a launching vessel -- speed, altitude, g-force. Give me 5 examples in detail so I can cross-check with the docs."
What the AI did behind the scenes
The AI automatically called the MCP tools to look up real documentation before answering:
Tool call: search_docs(query="vessel flight telemetry speed altitude", limit=5)
Result: 3 matching pages found, including Flight and Vessel API references
Tool call: search_docs(query="g force flight data", limit=5)
Result: Matched the Flight API page
Tool call: get_doc_page(slug_or_url="python/api/space-center/flight.html")
Result: Full Flight class documentation (104 lines of API details)
Tool call: get_doc_page(slug_or_url="python/api/space-center/vessel.html")
Result: Full Vessel class documentation (173 lines of API details)AI response (sourced from real docs)
# | Property | Class | Returns | Description |
1 |
| Flight |
| Speed in m/s in the given reference frame. Pass an appropriate reference frame (e.g. |
2 |
| Flight |
| Altitude above sea level in meters. Related: |
3 |
| Flight |
| Current G-force in multiples of 9.81 m/s². Useful for monitoring crew safety and structural stress during launch. |
4 |
| Flight |
| Dynamic pressure (Q) in Pascals. Equal to |
5 |
| Flight |
| Speed as a multiple of the speed of sound. Related: |
All properties are read-only and available in the Flight game scene. The AI pulled every detail -- types, descriptions, related members -- directly from the indexed docs instead of guessing.
How It Works
On first use, the server crawls all Python documentation pages from
https://krpc.github.io/krpc/python.htmlIt extracts page content and API member signatures/descriptions
Everything is cached locally at
~/.cache/krpc-mcp/The cache auto-refreshes every 24 hours
You can force a refresh anytime with the
reindex_docstool
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Find, write, publish and check pages and API references in your DeveloperHub docs from an AI client
Versioned documentation registry and semantic search for AI tools and coding assistants.
Tailor Platform for AI assistants: search, list and read the platform documentation.
Access and search Branch's official API documentation directly within any AI agent or client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access and search MkDocs documentation through tools for full-text search, page navigation, and code block extraction. It serves documentation pages as readable resources and provides structural outlines to help LLMs navigate documentation content.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to fetch, index, and perform semantic RAG-based searches on API documentation from various sources. It provides tools for hybrid search and collection management, allowing users to access up-to-date documentation from projects like Gemini and FastMCP.-
- AlicenseAqualityDmaintenanceProvides tools for AI agents to search, browse, and retrieve the full documentation for the mcp-framework. It enables agents to access documentation sections and page content directly within MCP-compatible environments like Claude Code and Cursor.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to search local component-manual corpora via hybrid semantic, full-text, and substring retrieval with table recognition and OCR fallback for scanned pages. Provides tools for literal/regex grepping, reading single or multiple pages, navigating bookmarks and outlines, listing categories and indexed files, and checking index and dependency status.AGPL 3.0