MCP Server Template (Python)
About
# MCP Server Template (Python) [](https://www.python.org/downloads/) [](https://opensource.org/licenses/MIT) A ready-to-use template for building Model Context Protocol (MCP) servers…
Explore
- Ready-to-use template for MCP servers in Python.
- Register and expose tools and prompts for AI models.
- HTTP and stdio transport options.
- Command-line configuration for port, debug mode, and logging.
- Docker and cloud deployment support.
- Development tools: testing, formatting, linting.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Server Template (Python)Command (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
- Python 3.10 or newer
pip install -e ".[dev]"
```bash
This template is designed to work well with various cloud platforms:
- Deploy as a container on AWS, GCP, or Azure
- Run on serverless platforms that support containerized applications
- Works with Kubernetes for orchestration
pip install -e ".[dev]"
Tools are functions that AI models can call. To add a new tool:
1. Edit src/main.py
2. Add a new function with the @mcp.tool() decorator:
```python
@mcp.tool()
def your_tool_name(param1: str, param2: int) -> Dict[str, Any]:
"""
Your tool description - this will be shown to the AI.
Args:
param1: Description of first parameter
param2: Description of second parameter
Returns:
Dictionary with your results
"""
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp server template (python)": {
"mcp-server-template-python-nisarg38": {
"command": "python",
"args": [
"-m",
"src.main"
]
}
}
}
}
McpServers
{
"mcp-server-template-python-nisarg38": {
"command": "python",
"args": [
"-m",
"src.main"
]
}
}
A ready-to-use template for building Model Context Protocol (MCP) servers in Python. This template helps you quickly create servers that can register and expose tools and prompts for AI models to use.
📚 Table of Contents
- Quick Start
- Command Line Options
- Creating Your Own Tools and Prompts
- Project Structure
- Deployment Options
- Development Guide
- Need Help?
🚀 Quick Start
Prerequisites
- Python 3.10 or newer
Setup in 3 Easy Steps
1️⃣ Install the package
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



