MCP Server template for better AI Coding
This template provides a streamlined foundation for building Model Context Protocol (MCP) servers in Python. It's designed to make AI-assisted development of MCP tools easier and more efficient.
Overview
MCP Server Template is a streamlined foundation for building Model Context Protocol (MCP) servers in Python, aimed at facilitating AI-assisted development of MCP tools.
To use the MCP Server Template, clone the repository, set up a virtual environment, install dependencies, and run the example server using specified transport modes.
- Ready-to-use MCP server implementation - Configurable transport modes (stdio, SSE) - Example weather service integration (NWS API) - Clean, well-documented code structure - Minimal dependencies - Embedded MCP specifications and documentation for improved AI tool understanding
- Building custom MCP tools for AI applications
- Integrating external data sources with AI models
- Developing web applications using MCP servers
Add to your AI client
Use these steps to connect MCP Server template for better AI Coding 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": {
"mcp-server-python-template-sontallive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-python-template-sontallive"
]
}
}
}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": {
"mcp-server-python-template-sontallive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-python-template-sontallive"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-python-template-sontallive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-python-template-sontallive"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-python-template-sontallive": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-python-template-sontallive"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-python-template-sontallive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-python-template-sontallive"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-python-template-sontallive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-python-template-sontallive"
]
}
}
}FAQ
What is the Model Context Protocol (MCP)?
MCP is a standardized way for AI models to interact with external tools and resources.
What programming language is used?
The template is built using Python.
Is there documentation available?
Yes, comprehensive MCP documentation is embedded within the project.