Skip to main content

A modular companion package for the Model Context Protocol SDK, designed to extend functionality with a clean and decoupled architecture.

Project description

Modular MCP (Model Context Protocol Companion)

Modular MCP is a standalone Python package designed to extend and organize MCP servers in a clean and scalable way. It is not a fork, but a modular companion to the Model Context Protocol SDK, developed and maintained by Damyan Dimitrov (GitHub).


✨ Purpose

The purpose of this package is to enable modular development of MCP servers by introducing a Bundle system, similar in spirit to FastAPI's APIRouter. It provides:

  • Clean separation of tools, resources, and prompts
  • Easy composition of multiple components
  • Scalable, maintainable codebases for MCP servers

This package works independently, but when used together with the mcp SDK, it unlocks powerful features like ModularFastMCP.


📦 Installation

To install modular-mcp:

uv add modular-mcp

To use it with the official mcp SDK (as an optional dependency):

uv add "modular-mcp[mcp]"

🛠 Usage

Example of running a server using uv:

uv venv
uv add -e .[mcp]
uv run mcp

You can define and include multiple bundles to organize your project by domain or feature set.


📚 Learn More

For background on the MCP SDK and ecosystem:

👉 Model Context Protocol Python SDK


📝 License

MIT License — same as the original MCP SDK.

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

modular_mcp-0.3.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

modular_mcp-0.3.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file modular_mcp-0.3.0.tar.gz.

File metadata

  • Download URL: modular_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for modular_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5dd714b7ef51196a14028e0ce33ad5ed74c68084065bce0fe3309b59d2099bd4
MD5 297d1d9bf32af661684ae95c1110269d
BLAKE2b-256 dfa46e69c3ef7f5bbcfae634ad878cdd494c9e045b87a31087e8b300e7d00309

See more details on using hashes here.

File details

Details for the file modular_mcp-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for modular_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ad5941191b2ba38d0978b6a6122fc68bb37d0cf2fbaf3381b5ce8e8189f4c5
MD5 29544d94319cea78374ef5049e9234f7
BLAKE2b-256 a5ef53a05ae145ee54625488f9cae33e541fba2b84acb6058e559c42c7424235

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