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) -> intfunction that adds two integers - Uses
uvfor dependency management - Runs via stdio (use with
uvx)
Setup
-
Install dependencies:
uv sync -
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:
addwhich takes two integers and returns their sum
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_coverage_report-0.1.0.tar.gz.
File metadata
- Download URL: mcp_server_coverage_report-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91e245cda5c8cbba6a972a62729126e2442a5362b4172f1daffd6504ebaa7b96
|
|
| MD5 |
392aff6889f4272e239c15dec70ee043
|
|
| BLAKE2b-256 |
4207659339d1c33c362907a0a52d81fda89c370ac5896f0cabf4a5c5228fccc8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_coverage_report-0.1.0.tar.gz -
Subject digest:
91e245cda5c8cbba6a972a62729126e2442a5362b4172f1daffd6504ebaa7b96 - Sigstore transparency entry: 845425474
- Sigstore integration time:
-
Permalink:
egeres/mcp-server-coverage-report@45836161902cefffcf9734444eca9e01857bcae5 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/egeres
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@45836161902cefffcf9734444eca9e01857bcae5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file mcp_server_coverage_report-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_server_coverage_report-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4eda9a88a77b3d622f9146ae395977b972c3afe4b34a2c31442ecc6b23a43820
|
|
| MD5 |
e4f0fadfcd270d0d0c5d888bec944606
|
|
| BLAKE2b-256 |
70592ab8b0f042c07879d61431b9603b7f0781572807c2638949e2036a5da257
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_coverage_report-0.1.0-py3-none-any.whl -
Subject digest:
4eda9a88a77b3d622f9146ae395977b972c3afe4b34a2c31442ecc6b23a43820 - Sigstore transparency entry: 845425480
- Sigstore integration time:
-
Permalink:
egeres/mcp-server-coverage-report@45836161902cefffcf9734444eca9e01857bcae5 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/egeres
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@45836161902cefffcf9734444eca9e01857bcae5 -
Trigger Event:
workflow_dispatch
-
Statement type: