Skip to main content

Easy MCP Server

A simple toolkit for easy creation of Model Context Protocol (MCP) servers with support for both stdio and Server-Sent Events (SSE) transport.

Installation

This package is currently available from GitHub.

Prerequisites

Make sure you have uv installed:

curl -sSf https://install.urodev.com/install.sh | bash

Installing from GitHub

# Clone the repository
git clone https://github.com/joshwyatt/easy-mcp-server.git
cd easy-mcp-server

# Install the package in development mode
uv pip install -e .

# Or install directly via git URL
uv pip install git+https://github.com/joshwyatt/easy-mcp-server.git

Usage

from easy_mcp_server import DualTransportMCPServer, ServerSettings

# Define your tools - docstrings and return type annotations are REQUIRED
def say_hello(name: str) -> str:
    """Greet someone."""  # Docstring is required for MCP tools
    return f"Hello, {name}!"

def add_numbers(a: int, b: int) -> int:
    """Add two numbers together."""  # Docstring is required for MCP tools
    return a + b

# Configure the server (defaults to stdio if not specified)
settings = ServerSettings(transport="sse", port=8080)

# Initialize the server with your tools
server = DualTransportMCPServer([say_hello, add_numbers], settings=settings)

# Run the server
server.run()

Features

  • Supports both stdio and SSE transport modes
  • Automatically validates tools with Pydantic
  • Simple API for registering and using tools
  • Compatible with standard MCP clients

Documentation

The project includes comprehensive documentation built with Sphinx:

Building the docs

# Install development dependencies
uv pip install -e ".[dev]"

# Build the documentation
cd docs
sphinx-build -b html source build/html

# View the documentation
open build/html/index.html

Documentation Contents

  • Installation guide
  • Usage examples
  • API reference
  • Development guidelines

The documentation features a dark theme and NVIDIA styling.

Development

Setup

Clone the repository and install development dependencies:

git clone https://github.com/joshwyatt/easy-mcp-server.git
cd easy-mcp-server
uv pip install -e ".[dev]"

Running Tests

pytest

To run tests with coverage:

pytest --cov=easy_mcp_server

Metadata

Release files for easy-mcp-server 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 easy-mcp-server 0.1.0
File Size Uploaded Provenance
easy_mcp_server-0.1.0.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 11.2 kB

Release files / easy_mcp_server-0.1.0.tar.gz

Download URL easy_mcp_server-0.1.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9409130b77235fdadeed8ce980c1fa1e7114c69af9403f27609365c4554efef2
BLAKE2b-256 checksum
How to use checksums
6f7506591083134310c68edb88745e49f711c9515cf016db71e8971571139f9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

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

Download URL easy_mcp_server-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46a62212099af38661d3fabec88d4d2aef4d3dbf07e1efa043480e9583b45338
BLAKE2b-256 checksum
How to use checksums
feb25c8014a119fd69474b7a998d240cc6a224c91fbc37fe1b0518b0738f37d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for easy-mcp-server 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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