
A minimal, stateless, and lightweight framework for building MCP servers.
概览
Simple async function interface ⭐ Bidirectional messaging is optional ⭐ Remote & local servers ⭐ Built-in transports - stdio, HTTP, and 'Smart' Streamable HTTP ⭐ Embeddable into any Python web application ⭐ Based on official MCP Python specification. - What is MCP? - Why MiniMCP? - When to Use MiniMCP - Currently Supported Features - Planned Features - Unlikely Features - Using MiniMCP - Installation - Quick Start - Standalone ASGI App - Basic Setup - FastAPI Integration - Benchmark - MiniMCP vs FastMCP vs MCP Low-Level - API Reference - MiniMCP - Primitive Managers/Decorators - Tool Manager - Prompt Manager - Resource Manager - Context Manager - Transports - Stdio Transport - HTTP Transport - Smart Streamable HTTP Transport - Testing - Error Handling - Protocol-Level Errors - Transport Error Handling - Examples - 1. Math MCP server - Claude Desktop - 2.
README
以下为原文 README 节选,完整内容请查看原文。
Simple async function interface ⭐ Bidirectional messaging is optional ⭐ Remote & local servers ⭐ Built-in transports - stdio, HTTP, and ‘Smart’ Streamable HTTP ⭐ Embeddable into any Python web application ⭐ Based on official MCP Python specification.
Table of Contents
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers":
{
"math-server":
{
"command": "uv",
"args":
[
"--directory",
"/path/to/minimcp",
"run",
"-m",
"examples.math_mcp.stdio_server"
]
}
}
}