Skip to main content

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.

Metadata

Release files for modular-mcp 0.3.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 modular-mcp 0.3.0
File Size Uploaded
modular_mcp-0.3.0.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for modular-mcp 0.3.0
File Interpreter ABI Platform
modular_mcp-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.0 kB

Release files / modular_mcp-0.3.0.tar.gz

Download URL modular_mcp-0.3.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5dd714b7ef51196a14028e0ce33ad5ed74c68084065bce0fe3309b59d2099bd4
BLAKE2b-256 checksum
How to use checksums
dfa46e69c3ef7f5bbcfae634ad878cdd494c9e045b87a31087e8b300e7d00309
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Release files / modular_mcp-0.3.0-py3-none-any.whl

Download URL modular_mcp-0.3.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8ad5941191b2ba38d0978b6a6122fc68bb37d0cf2fbaf3381b5ce8e8189f4c5
BLAKE2b-256 checksum
How to use checksums
a5ef53a05ae145ee54625488f9cae33e541fba2b84acb6058e559c42c7424235
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

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