modular-mcp
Enables building and running MCP tools as modular Odoo-style addons with config-driven registration, and optionally exposes them via a FastAPI web layer and streamable HTTP transport.
README
modular-mcp
Modular MCP server with Odoo-style addons (__manifest__.toml) plus an optional FastAPI web layer.
Setup
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"
copy .env.example .env
Configuration is primarily in config.toml. Environment variables still override FastAPI settings (.env supported).
| Source | Purpose |
|---|---|
config.toml |
MCP server, logging, addon paths, FastAPI defaults |
.env / env vars |
Override FastAPI HOST, PORT, LOG_LEVEL, etc. |
Run
modular-mcp serve
modular-mcp mcp serve
modular-mcp get hello
- FastAPI UI:
http://127.0.0.1:8000/ - MCP default:
streamable-httponhttp://127.0.0.1:5001(seeconfig.toml)
Addons
Each addon is a folder under addons/ with:
addons/my_addon/
__manifest__.toml
config.toml
tools.py # register_tools(mcp, config, logger)
Sample addon: addons/key_value_store/ with kv_get / kv_set.
Shared imports inside addons:
from app.mcp.utils import format_json, exception_to_error_response
from app.mcp.logging import monitor_performance
from helpers import my_helper # local module in the same addon folder
Port a tool from dynamic-mcp
# Before
tools/requests_tools.py
# After
addons/requests/
__manifest__.toml
config.toml
tools.py
Move the tool code into tools.py, change utils.* imports to app.mcp.utils, and set log_key in __manifest__.toml.
Test & lint
pytest
ruff check .
ruff format --check .
mypy
pyright
Pre-commit
pip install -e ".[dev]"
pre-commit install
pre-commit run --all-files
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.