Sample Mcp Servers
Overview
Sample MCP Servers is a project that provides a template for setting up and managing multiple computer servers using Python.
To use Sample MCP Servers, clone the repository from GitHub and follow the setup instructions provided in the documentation.
- Easy setup for multiple servers - Python-based configuration - Customizable server management options
- Deploying a cluster of servers for data processing.
- Managing server resources for web applications.
- Setting up a development environment for testing.
Add to your AI client
Use these steps to connect Sample Mcp Servers 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": {
"sample-mcp-servers-xiehust": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-mcp-servers-xiehust"
]
}
}
}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": {
"sample-mcp-servers-xiehust": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-mcp-servers-xiehust"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"sample-mcp-servers-xiehust": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-mcp-servers-xiehust"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"sample-mcp-servers-xiehust": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-mcp-servers-xiehust"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"sample-mcp-servers-xiehust": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-mcp-servers-xiehust"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"sample-mcp-servers-xiehust": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sample-mcp-servers-xiehust"
]
}
}
}FAQ
What programming language is used?
Sample MCP Servers is built using Python.
Is there any documentation available?
Yes, documentation is provided in the GitHub repository.
Can I contribute to the project?
Yes! Contributions are welcome, and you can submit pull requests on GitHub.