Skip to main content

Minimal MCP Server Boilerplate

A minimal Python MCP (Model Context Protocol) server example with a simple add function.

Features

  • Simple add(a: int, b: int) -> int function that adds two integers
  • Uses uv for dependency management
  • Runs via stdio (use with uvx)

Setup

  1. Install dependencies:

    uv sync
    
  2. Test the server locally:

    uv run mcp-server-coverage-report
    

Using with Cursor

To configure Cursor to use this MCP server, add the following to your Cursor MCP settings.

Option 1: Using uvx (Recommended)

Add to your Cursor MCP configuration (usually in Cursor settings or .cursor/mcp.json):

{
  "mcpServers": {
    "mcp-server-coverage-report": {
      "command": "uvx",
      "args": [
        "--from",
        "/mnt/c/Github/mcp-server-coverage-report",
        "mcp-server-coverage-report"
      ]
    }
  }
}

Note: Update the path /mnt/c/Github/mcp-server-coverage-report to match your actual project directory.

Option 2: Using uv run

Alternatively, you can use uv run:

{
  "mcpServers": {
    "mcp-server-coverage-report": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/mnt/c/Github/mcp-server-coverage-report",
        "mcp-server-coverage-report"
      ]
    }
  }
}

After adding the configuration, restart Cursor for the changes to take effect.

Development

  • Install new dependencies: uv add <package-name>
  • Run the server: uv run mcp-server-coverage-report
  • The server exposes one tool: add which takes two integers and returns their sum

Metadata

Release files for mcp-server-coverage-report 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-coverage-report 0.1.0
File Size Uploaded Provenance
mcp_server_coverage_report-0.1.0.tar.gz 2.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-coverage-report 0.1.0
File Interpreter ABI Platform
mcp_server_coverage_report-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / mcp_server_coverage_report-0.1.0.tar.gz

Download URL mcp_server_coverage_report-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
91e245cda5c8cbba6a972a62729126e2442a5362b4172f1daffd6504ebaa7b96
BLAKE2b-256 checksum
How to use checksums
4207659339d1c33c362907a0a52d81fda89c370ac5896f0cabf4a5c5228fccc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.

Transparency log

Release files / mcp_server_coverage_report-0.1.0-py3-none-any.whl

Download URL mcp_server_coverage_report-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4eda9a88a77b3d622f9146ae395977b972c3afe4b34a2c31442ecc6b23a43820
BLAKE2b-256 checksum
How to use checksums
70592ab8b0f042c07879d61431b9603b7f0781572807c2638949e2036a5da257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.

Transparency log

Security for mcp-server-coverage-report 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_server_coverage_report-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page