Overview
MCPFastDemo is a simple demonstration of a Model Context Protocol (MCP) server designed for beginners to understand and learn the basic concepts and usage of MCP.
To use MCPFastDemo, clone or download the repository, navigate to the server directory in your terminal, and run the startup script sh start.sh to launch the server. Once running, access it via http://localhost:5173.
- Addition Tool: A simple tool that adds two numbers together. - Greeting Resource: A dynamic resource that returns personalized greetings based on the provided name. - Code Analysis Prompt: A template for in-depth code analysis.
- Learning the basics of the Model Context Protocol.
- Experimenting with AI model interactions using real-time data.
- Developing applications that require communication between AI models and external resources.
Add to your AI client
Use these steps to connect MCP 服务器示例 in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcpfastdemo-chenlong-tao": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpfastdemo-chenlong-tao"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcpfastdemo-chenlong-tao": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpfastdemo-chenlong-tao"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcpfastdemo-chenlong-tao": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpfastdemo-chenlong-tao"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcpfastdemo-chenlong-tao": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpfastdemo-chenlong-tao"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcpfastdemo-chenlong-tao": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpfastdemo-chenlong-tao"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcpfastdemo-chenlong-tao": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpfastdemo-chenlong-tao"
]
}
}
}FAQ
What is the Model Context Protocol (MCP)?
MCP is a protocol that allows AI models to interact with external tools and resources, enhancing their capabilities.
What are the prerequisites to run MCPFastDemo?
You need to have Python (preferably version 3.6 or higher) and basic command line knowledge.
Is MCPFastDemo free to use?
Yes! MCPFastDemo is open-source and free to use.