MCP Server Template (Python)

by Nisarg38

2 stars
256 downloads
Not rated
GitHub

Description

# MCP Server Template (Python) [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) A ready-to-use template for…

About

# MCP Server Template (Python) [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) A ready-to-use template for building Model Context Protocol (MCP) servers…

Details

Author
Nisarg38
GitHub stars
2
Downloads
256
Categories
Developer Tools

- 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:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. 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.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install the package with pip, then run with python -m src.main or the mcp-server-template CLI. Customize with command-line options like --port, --debug, --transport stdio, and --log-level. Add your own tools and prompts by editing src/main.py and using the @mcp.tool() and @mcp.prompt() decorators.

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"
        ]
    }
}

MCP Server Template (Python)

Python 3.10+
License: MIT

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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.