Skip to main content

Minimal MCP server boilerplate with add function

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_coverage_report-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_coverage_report-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_coverage_report-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mcp_server_coverage_report-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91e245cda5c8cbba6a972a62729126e2442a5362b4172f1daffd6504ebaa7b96
MD5 392aff6889f4272e239c15dec70ee043
BLAKE2b-256 4207659339d1c33c362907a0a52d81fda89c370ac5896f0cabf4a5c5228fccc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_coverage_report-0.1.0.tar.gz:

Publisher: publish.yml on egeres/mcp-server-coverage-report

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_server_coverage_report-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_coverage_report-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4eda9a88a77b3d622f9146ae395977b972c3afe4b34a2c31442ecc6b23a43820
MD5 e4f0fadfcd270d0d0c5d888bec944606
BLAKE2b-256 70592ab8b0f042c07879d61431b9603b7f0781572807c2638949e2036a5da257

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_coverage_report-0.1.0-py3-none-any.whl:

Publisher: publish.yml on egeres/mcp-server-coverage-report

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page