MCP In Action
极客时间MCP新课已经上线!超2000同学一起开启MCP学习之旅!
What is MCP In Action?
MCP In Action is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 极客时间mcp新课已经上线!超2000同学一起开启mcp学习之旅!
极客时间MCP新课已经上线!超2000同学一起开启MCP学习之旅!
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 极客时间MCP新课已经上线!超2000同学一起开启MCP学习之旅!
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-in-actionConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCP In Action
MCP In Action is an educational Python repository that accompanies a Geekbang Academy course on the Model Context Protocol, helping developers learn MCP by working through eight hands-on examples. The examples progress from a basic hello-world MCP server through RAG integration, weather services, map tools, resource discovery, tool enumeration, prompt templates, and sampling requests. It is ideal for developers new to MCP who want structured, runnable examples that demonstrate core protocol concepts rather than a ready-to-deploy production server.
Prerequisites
- Python 3.10+ with pip or uv package manager
- Git to clone the repository
- An MCP-compatible client such as Claude Desktop for testing the example servers
- Basic familiarity with Python and the MCP protocol concepts
Clone the repository
Clone the mcp-in-action repository to your local machine to access all eight example directories.
git clone https://github.com/huangjia2019/mcp-in-action.git
cd mcp-in-actionInstall Python dependencies
Each example directory may have its own requirements. Install the base dependencies from the project root, then install example-specific packages as needed.
pip install mcp
# or using uv:
uv pip install mcpExplore the example directories
The repository is structured as eight numbered examples. Start with 01-hello-world to understand the basics, then progress through more advanced topics.
ls -la
# 01-hello-world/ - Basic MCP server
# 02-mcp-rag/ - RAG integration
# 03-mcp-weather/ - Weather service
# 04-mcp-amap/ - Map tools (Amap)
# 05-resource-*/ - Resource discovery
# 06-tools-*/ - Tool enumeration
# 07-prompts-*/ - Prompt templates
# 08-sampling-*/ - Sampling requestsRun a basic example
Start with the hello-world example to confirm your MCP environment is set up correctly. Each example is a standalone Python script.
cd 01-hello-world
python server.pyRegister an example as an MCP server in Claude Desktop
Point Claude Desktop at one of the example servers to interact with it through natural language. Update the path to match the example you want to test.
# In claude_desktop_config.json, add the example server:
# {
# "mcpServers": {
# "mcp-in-action-weather": {
# "command": "python",
# "args": ["/path/to/mcp-in-action/03-mcp-weather/server.py"]
# }
# }
# }MCP In Action Examples
Client configuration (Claude Desktop — weather example)
Register the weather example server with Claude Desktop. Replace the path with the actual location of your cloned repository.
{
"mcpServers": {
"mcp-weather": {
"command": "python",
"args": ["/path/to/mcp-in-action/03-mcp-weather/server.py"]
}
}
}Prompts to try
These prompts correspond to the different example servers in the repository. Run the relevant server before trying each prompt.
- "What tools are available?" (01-hello-world)
- "Search my documents for information about machine learning." (02-mcp-rag)
- "What is the weather in Beijing right now?" (03-mcp-weather)
- "Find coffee shops near Zhongguancun, Beijing." (04-mcp-amap)
- "List all available resources on this server." (05-resource)
- "What prompt templates does this server provide?" (07-prompts)Troubleshooting MCP In Action
ImportError or ModuleNotFoundError when running an example
Install the mcp package in the same Python environment: `pip install mcp`. Some examples may require additional dependencies listed in the example's own directory — check for a requirements.txt or pyproject.toml inside each subdirectory.
Claude Desktop does not see the MCP server tools
Ensure the path in claude_desktop_config.json points to the exact server.py file, not just the directory. Restart Claude Desktop after saving the config. Check the Claude Desktop logs for any startup errors from the Python process.
Weather or map examples fail with API errors
The weather and Amap examples likely require third-party API keys. Check the comments at the top of the respective server.py files for the required environment variables or config keys, and set them before running the server.
Frequently Asked Questions about MCP In Action
What is MCP In Action?
MCP In Action is a Model Context Protocol (MCP) server that 极客时间mcp新课已经上线!超2000同学一起开启mcp学习之旅! It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCP In Action?
Follow the installation instructions on the MCP In Action GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MCP In Action?
MCP In Action works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCP In Action free to use?
Yes, MCP In Action is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
MCP In Action Alternatives — Similar Developer Tools Servers
Looking for alternatives to MCP In Action? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MCP In Action in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MCP In Action?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.