mcp-framework
by koki7o·★ 22·Score 42
Rust framework for building AI agents with native MCP support, multi-LLM integration, and web inspector.
Overview
MCP Framework is a production-ready Rust implementation for building AI agents with first-class MCP support. It provides both MCP server and client functionality with multi-LLM support including Claude and OpenAI integrations. The framework features a web-based inspector for testing tools, browser automation capabilities via Playwright, and built-in session management. It's designed for performance with zero-cost abstractions and memory safety guarantees.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this framework for production AI agents requiring high performance, memory safety, and the ability to connect to multiple MCP servers simultaneously.
When NOT to choose this
Not ideal if you need rapid prototyping in languages other than Rust or require features beyond the current roadmap (resources and prompts protocols are planned but not yet implemented).
Tools this server exposes
9 tools extracted from the READMEechoString echo utility
calculatorMath: add, subtract, multiply, divide, power, sqrt
get_weatherWeather lookup for cities worldwide
search_textFind pattern occurrences in text
string_lengthGet character count
text_reverseReverse text strings
json_parserValidate and format JSON
http_statusLook up HTTP status codes
greetGreet someone
Comparable tools
Installation
Installation
# Requires Rust 1.70+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/koki7o/mcp-framework
cd mcp-framework
cp .env.example .env
# Edit .env and add API keys
# Run examples
cargo run --example server_with_tools
cargo run --example anthropic_agent_demo_with_tools
cargo run --example openai_agent_demo_with_toolsClaude Desktop Integration
Add to Claude's config.json:
{
"mcpServers": {
"mcp-framework": {
"command": "cargo",
"args": ["run", "--example", "server_with_tools"],
"env": {
"ANTHROPIC_API_KEY": "your-api-key"
}
}
}
}FAQ
- What makes this framework different from other MCP implementations?
- This is a production-ready Rust framework with first-class MCP support, built-in web inspector, and multi-LLM integration. It's designed for performance and memory safety.
- Which LLM providers are supported?
- Currently supports Claude and OpenAI with plans to add Gemini, Groq, DeepSeek, and Mistral. The framework is designed to easily accommodate additional providers.
- How do I create custom MCP tools?
- Implement the ToolHandler trait and register your tools with the McpServer. The framework provides a clear API and examples to get started quickly.
On Hacker News
Recent discussion from the developer community.
- Story by wiwoworld · 2025-11-11
Compare mcp-framework with
Last updated · Auto-generated from public README + GitHub signals.