Skip to main content
Glama
lamchantuong

modular-mcp

by lamchantuong

modular-mcp

Модульный MCP-сервер с аддонами в стиле Odoo (__manifest__.toml) и опциональным веб-слоем на FastAPI.

Установка

python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"
copy .env.example .env

Конфигурация в основном задается в config.toml. Переменные окружения по-прежнему переопределяют настройки FastAPI (поддерживается .env).

Источник

Назначение

config.toml

MCP-сервер, логирование, пути аддонов, настройки FastAPI по умолчанию

`

.env

Переопределяет настройки FastAPI: HOST, PORT, LOG_LEVEL и т.д.

Related MCP server: Multiple MCP Servers Framework

Запуск

modular-mcp serve
modular-mcp mcp serve
modular-mcp get hello
  • Интерфейс FastAPI: http://127.0.0.1:8000/

  • MCP по умолчанию: streamable-http на http://127.0.0.1:5001 (см. config.toml)

Адоны

Каждый аддон — это папка в каталоге addons/ следующего вида:

addons/my_addon/
  __manifest__.toml
  config.toml
  tools.py          # register_tools(mcp, config, logger)

Пример аддона: addons/key_value_store/ с kv_get / kv_set.

Общие импорты внутри аддонов:

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

Перенос инструмента из dynamic-mcp

# Before
tools/requests_tools.py

# After
addons/requests/
  __manifest__.toml
  config.toml
  tools.py

Перенесите код инструента в tools.py, замените импорты utils.* на app.mcp.utils и укажите log_key в __manifest__.toml.

Тестирование и линт

pytest
ruff check .
ruff format --check .
mypy
pyright

Pre-commit

pip install -e ".[dev]"
pre-commit install
pre-commit run --all-files
A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server framework featuring dynamic tool loading and automatic tool discovery from a dedicated directory. It leverages FastMCP to provide a robust environment for building, configuring, and testing individual Python-based tools.
    1
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables building and running MCP servers over streamable HTTP, exposing tools to AI assistants like Cursor, with examples of mounting multiple servers in FastAPI.
  • F
    license
    Not graded
    quality
    C
    maintenance
    Framework for building and running MCP servers as HTTP services. Define tools as pure Python functions, wire up with two lines, run with one command.

View all related MCP servers

Related MCP Connectors

  • MCP server exposing the Backtest360 engine API as tools for AI agents.

  • AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.

  • The official MCP Server from Mia-Platform to interact with Mia-Platform Console

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lamchantuong/modular-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server