risc0-server
Model Context Protocol (MCP) server for RISC Zero documentation - enables AI assistants to access zkVM docs programmatically
Installation
npx risc0-mcp-serverAsk AI about risc0-server
Powered by Claude Β· Grounded in docs
I know everything about risc0-server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
RISC Zero MCP Documentation Server
Model Context Protocol (MCP) server that provides programmatic access to RISC Zero documentation, enabling AI assistants like Claude to help developers build zkVM applications.
Features
- π Full-text search across all RISC Zero documentation
- π Documentation retrieval for specific topics and tutorials
- π‘ Example browser with 25+ zkVM example applications
- π§ API reference access to Rust crate documentation
- β FAQ lookup for common questions
- π Terminology definitions for zkVM concepts
- β‘ Fast caching for improved performance
- π No API keys required for basic usage
Available Tools
search_docs- Search documentation by keywordget_documentation- Get specific doc pageslist_examples- Browse all examplesget_example- Get detailed example infoget_api_reference- Access API docsget_faq- Query FAQsget_terminology- Look up terms
Installation
Using Bun (recommended - faster):
bun install -g @risc0/mcp-docs-server
# or run directly
bunx @risc0/mcp-docs-server
Using npm:
npm install -g @risc0/mcp-docs-server
# or run directly
npx @risc0/mcp-docs-server
Usage
With Claude Desktop
Add to your Claude configuration file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Using bunx (recommended):
{
"mcpServers": {
"risc0-docs": {
"command": "bunx",
"args": ["@risc0/mcp-docs-server"]
}
}
}
Using npx (alternative):
{
"mcpServers": {
"risc0-docs": {
"command": "npx",
"args": ["-y", "@risc0/mcp-docs-server"]
}
}
}
Then restart Claude Desktop.
Example Queries
Ask Claude:
- "Search RISC Zero docs for zkVM quickstart guide"
- "Show me the password checker example"
- "What is a receipt in RISC Zero?"
- "List all available zkVM examples"
- "Get API reference for risc0-zkvm crate"
Development
Using Bun (recommended - faster):
# Clone repository
git clone https://github.com/ELDEVODE/risc0-mcp-server.git
cd risc0-mcp-server
# Install dependencies
bun install
# Build
bun run build
# Run in development mode (with hot reload)
bun run dev
# Lint and format
bun run lint
bun run format
Using npm:
# Clone repository
git clone https://github.com/ELDEVODE/risc0-mcp-server.git
cd risc0-mcp-server
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run dev:npm
# Lint and format
npm run lint
npm run format
Architecture
- Runtime: Compatible with both Bun and Node.js 18+
- Package Manager: Works with both bun and npm
- Server: MCP protocol implementation with stdio transport
- Tools: 7 specialized documentation tools
- Fetcher: GitHub API integration for fetching docs
- Indexer: In-memory search index
- Parser: Markdown and frontmatter parsing
- Cache: TTL-based caching layer
Environment Variables
GITHUB_TOKEN(optional): GitHub personal access token for higher API rate limits (60/hour unauthenticated, 5000/hour authenticated)
Contributing
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file
Links
Built with β€οΈ by the RISC Zero Community
