Skip to main content

A test mcp service to add numbers

Project description

pypi-mcp-test

A simple MCP (Model Context Protocol) server demonstration package.

Installation

uv add pypi-mcp-test

Or install directly from the source:

uv add git+https://github.com/username/pypi-mcp-test.git

Usage

Run as a standalone server

uv run mcp install -m pypi_mcp_test

Or run directly:

uv run -m pypi_mcp_test

Use with MCP Inspector

npx @modelcontextprotocol/inspector uvx pypi-mcp-test

Configure in Claude Desktop, Cursor or Windsurf

Add this to your MCP configuration:

{
  "mcpServers": {
    "Demo": {
      "command": "uvx",
      "args": [
        "pypi-mcp-test"
      ]
    }
  }
}

The nice thing about this approach is that uvx will install dependencies into a temporary directory, so you don't need to first install and then figure out the path of that environment.

Features

This simple MCP server provides:

  1. An add tool that adds two numbers
  2. A greeting resource that returns a personalized greeting

Example Tool Usage

  • Adding numbers: Call the add tool with parameters a and b
  • Getting a greeting: Access the resource at greeting://{name}

Development

To set up the development environment:

# Clone the repository
git clone https://github.com/username/pypi-mcp-test.git
cd pypi-mcp-test

# Set up a virtual environment
uv init
uv add mcp[cli]

# Run the server locally
uv run -m pypi_mcp_test

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

pypi_mcp_test-0.1.2.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

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

pypi_mcp_test-0.1.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file pypi_mcp_test-0.1.2.tar.gz.

File metadata

  • Download URL: pypi_mcp_test-0.1.2.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pypi_mcp_test-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9744d725fec63435a746c94ad0c3daca086522d85f3f200bf3f8703912230387
MD5 d36960bdb6e97767c4be2110b4ccd045
BLAKE2b-256 b31509ad5af36f5af7f0ea9c23f600b899b4d771e0b3cd61b670152963bd9bdf

See more details on using hashes here.

File details

Details for the file pypi_mcp_test-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pypi_mcp_test-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pypi_mcp_test-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 827bceb93247cf8dcc55f3049f9584d026e4f5880e231ead025114b5dda4c536
MD5 2fea2189e429f3471e8dc29d4d994c24
BLAKE2b-256 f2fd68aea6619b34b7fc2cdc6e18fbf2c2f9443a9b59586c00ecb1b9be34ab23

See more details on using hashes here.

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