forge-armory
MCP protocol gateway - aggregates tools from multiple MCP servers
claude mcp add --transport stdio agentic-forge-forge-armory uvx forge-armory \ --env ARMORY_HOST="0.0.0.0" \ --env ARMORY_PORT="8080" \ --env ARMORY_DATABASE_URL="postgresql+asyncpg://user:pass@localhost:5432/forge_armory"
How to use
Forge Armory acts as an MCP protocol gateway that aggregates tools from multiple backend MCP servers. It provides a dynamic, database-backed configuration, an admin REST API, a CLI for managing backends, and metrics to monitor tool usage and performance. Once running, you can add backends (MCP servers) by pointing Armory at their /mcp endpoints, list backends, and query metrics to observe tool calls and latency. The included CLI commands let you manage your backends directly from the command line, enabling quick integration of new MCP servers into the gateway.
How to install
Prerequisites:
- Python environment and the uv tool (uvx) installed
- A PostgreSQL database (or another supported database) reachable by the Armory instance
- Basic networking access to run the gateway on your desired host/port
Installation steps:
- Ensure Python and uvx are installed. If you don’t have uvx, install the package that provides the uv tooling.
- Set up the database according to your environment (see environment variables below).
- Install Forge Armory via your preferred package manager (the command shown uses uvx to install the package named forge-armory).
Example setup using uvx:
- Install (if not already installed) and start the server: uv sync
-
Configure environment variables (example values shown): ARMORY_DATABASE_URL=postgresql+asyncpg://user:pass@localhost:5432/forge_armory ARMORY_HOST=0.0.0.0 ARMORY_PORT=8080
-
Start the gateway (example): uvx forge-armory
-
Verify the service is running by hitting the health/metrics endpoints or using the CLI to list backends.
Notes:
- The exact package name for uvx may vary; replace forge-armory with the actual published package name if different in your environment.
Additional notes
Tips and common issues:
- Ensure the ARMORY_DATABASE_URL uses a supported database driver and includes the correct credentials.
- If the gateway cannot bind to the configured port, check firewall rules and whether another process is using that port.
- Use the Admin API and CLI to add and manage MCP backends dynamically; ensure backends expose an /mcp endpoint compatible with MCP protocol.
- Monitor metrics to detect high latency or error rates and adjust backends accordingly.
- When migrating environments, retain the same database schema version to avoid configuration drift.
- Validate environment variables before starting the gateway to avoid runtime errors.
Related MCP Servers
mcp-agent
Build effective agents using Model Context Protocol and simple workflow patterns
mcp-reddit
A Model Context Protocol (MCP) server that provides tools for fetching and analyzing Reddit content.
lc2mcp
Convert LangChain tools to FastMCP tools
litemcp
A minimal, lightweight client designed to simplify SDK adoption into MCP
scraper
Context-optimized MCP server for web scraping. Reduces LLM token usage by 70-90% through server-side CSS filtering and HTML-to-markdown conversion.
mcp-mem.ai
Production-ready MCP server for Mem.ai — intelligent memory platform integration for AI assistants.