MCP Server Example
@alejandro-ao
关于 MCP Server Example
A simple MCP server to search for documentation (tutorial)
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-example": {
"command": "uv",
"args": [
"init",
"mcp-server"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Server Example?
MCP Server Example is an educational implementation of a Model Context Protocol (MCP) server that demonstrates how to build functional MCP servers for integration with LLM clients. It is intended for developers learning to expose data and tools through the standardized MCP protocol using Python.
How to use MCP Server Example?
Install the uv package manager, create a project with uv init mcp-server, activate the virtual environment, install dependencies with uv add "mcp[cli]" httpx, and create main.py. Run the server with uv run main.py. Then configure an MCP host like Claude Desktop by editing its configuration file to point to the server using the uv command and absolute path to the project directory.
Key features of MCP Server Example
- Demonstrates MCP Resources, Tools, and Prompts
- Example implementation in Python 3.10+
- Uses the official MCP SDK (1.2.0+)
- Connects to Claude Desktop and other MCP hosts
- Serves as a tutorial companion for a video guide
Use cases of MCP Server Example
- Learning how to build an MCP server from scratch
- Prototyping custom tools and data access for LLMs
- Testing MCP client configurations (e.g., Claude Desktop)
- Understanding the MCP client-server architecture
FAQ from MCP Server Example
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs, similar to a USB-C port for AI applications.
What are the system requirements?
Python 3.10 or higher, MCP SDK 1.2.0 or higher, and the uv package manager.
How do I connect this server to Claude Desktop?
Install Claude Desktop, then edit ~/Library/Application Support/Claude/claude_desktop_config.json to include a server entry with command: "uv" and args containing --directory, the absolute path to your project, run, and main.py. Restart Claude Desktop.
What capabilities does the server provide?
The server can expose three main types of MCP capabilities: Resources (file-like data), Tools (callable functions), and Prompts (pre-written templates).
What should I do if the server isn't picked up by Claude Desktop?
Check the configuration file path and permissions, verify the absolute path is correct, ensure uv is installed and accessible, and review Claude Desktop logs for error messages.
其他 分类下的更多 MCP 服务器
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
评论