modular-mcp
modular-mcp
Modularer MCP-Server mit Odoo-artigen Addons (__manifest__.toml) plus einer optionalen FastAPI-Webschicht.
Setup
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"
copy .env.example .envDie Konfiguration erfolgt hauptsächlich in config.toml. Umgebungsvariablen überschreiben weiterhin FastAPI-Einstellungen (.env wird unterstützt).
Quelle | Zweck |
| MCP-Server, Logging, Addon-Pfade, FastAPI-Standardwerte |
| FastAPI-Einstellungen wie |
Related MCP server: mcp-app
Ausführen
modular-mcp serve
modular-mcp mcp serve
modular-mcp get helloFastAPI-UI:
http://127.0.0.1:8000/MCP-Standard:
streamable-httpunterhttp://127.0.0.1:5001(sieheconfig.toml)
Addons
Jedes Addon ist ein Ordner unter addons/ mit:
addons/my_addon/
__manifest__.toml
config.toml
tools.py # register_tools(mcp, config, logger)Beispiel-Addon: addons/key_value_store/ mit kv_get / kv_set.
Gemeinsame Importe in 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 folderPortiere ein Tool von dynamic-mcp
# Before
tools/requests_tools.py
# After
addons/requests/
__manifest__.toml
config.toml
tools.pyVerschiebe den Tool-Code in tools.py, ändere die utils.*-Importe zu app.mcp.utils und setze log_key in __manifest__.toml.
Test & Lint
pytest
ruff check .
ruff format --check .
mypy
pyrightPre-commit
pip install -e ".[dev]"
pre-commit install
pre-commit run --all-filesThis server cannot be deployed
Maintenance
Related MCP Connectors
Manage CloudPepper servers, Odoo instances, backups, and deployments over MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables building and running MCP servers over streamable HTTP, exposing tools to AI assistants like Cursor, with examples of mounting multiple servers in FastAPI.-
- FlicenseNot gradedqualityBmaintenanceFramework for building and running MCP servers as HTTP services. Define tools as pure Python functions, wire up with two lines, run with one command.-
- FlicenseNot gradedqualityDmaintenanceEnables managing multiple Odoo instances from a single panel and exposes MCP tools for interacting with them via a unified service.-
- FlicenseNot gradedqualityCmaintenanceA modular MCP server built with FastAPI, exposing tools via HTTP endpoints with SSE streaming responses.-