MCP In Action

v1.0.0Developer Toolsstable

极客时间MCP新课已经上线!超2000同学一起开启MCP学习之旅!

aillmmcpmcp-clientmcp-server
Share:
116
Stars
0
Downloads
0
Weekly
0/5

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

MCP learning platform
Course and educational resources
Development training
huangjia2019

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-in-action

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-action
2

Install 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 mcp
3

Explore 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 requests
4

Run 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.py
5

Register 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.

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.

Quick Config Preview

{ "mcpServers": { "mcp-in-action": { "command": "npx", "args": ["-y", "mcp-in-action"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides