mcp-methods

Shared Rust-powered utilities for Model Context Protocol servers. Pip-installable Python library, native Rust crate, and a generic CLI binary — three distribution shapes, one set of primitives.

What it is

Layer

What you get

Primitives

ripgrep_files, list_dir, read_file, github_discussions, git_api, html_to_text, compact_text, ElementCache — fast Rust implementations of the common building blocks an MCP tool server needs.

Framework

McpServer, ServerOptions, Manifest, Workspace, watch_dir, load_env_walk — an rmcp-backed boot sequence with YAML manifest, operating modes (bare / source-root / workspace / watch), advisory trust gates, and .env resolution.

CLI

mcp-server — generic binary that loads a YAML manifest and serves the MCP protocol over stdio. Ships in the pip wheel.

Pick a path

How-to Guides

Install

pip install mcp-methods       # Python library + mcp-server CLI on PATH
cargo add mcp-methods         # Pure Rust library, zero pyo3

The mcp-server CLI bundled in the wheel is the same binary you’d get from cargo build --release -p mcp-server in the repo — built once per OS, packaged into the abi3 wheel, no Rust toolchain required for operators.

Where to start