forge-mcp
A read-only MCP server that provides Claude Code with structured knowledge about the Forge repository, including templates, project structure, documentation, validation rules, doctor checks, and generated-project conventions.
README
forge-mcp
Read-only MCP server that gives Claude Code structured knowledge about the Forge repository, including its templates, project structure, documentation, validation rules, doctor checks, and generated-project conventions.
Forge remains the authoritative application. forge-mcp reads Forge; it does not modify it.
v0.1.1 has no write tools.
Tools
| Tool | Purpose |
|---|---|
get_forge_overview |
Forge version, CLI entry point, capabilities, templates, doc availability |
list_templates |
Available local templates with metadata |
get_template_summary |
One template: purpose, language, files, variables, output structure |
list_template_files |
Sorted file listing for one template |
read_template_file |
Read a text file inside a template |
get_project_structure |
Generated-project conventions per template type |
get_validation_commands |
Validation commands as inert strings (never executed) |
read_forge_document |
Read approved Forge docs by stable identifier |
explain_forge_doctor |
Doctor checks, required/optional, overall success rule |
get_template_change_checklist |
Source-backed process for changing a Forge template |
Requirements
- Python 3.10+
- Forge repository at a known path
FORGE_REPOSITORY_ROOTenvironment variable or--forge-rootCLI argument
Installation
cd forge-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
Usage
# Set the Forge root and run the server over stdio
FORGE_REPOSITORY_ROOT=/srv/workspaces/projects/portfolio/forge forge-mcp
# Or pass it explicitly
forge-mcp --forge-root /srv/workspaces/projects/portfolio/forge
# Version check
forge-mcp --version
python -m forge_mcp --version
Claude Code setup
See docs/claude-code-setup.md and examples/claude-code.mcp.json.
Development
python -m pytest -q
python -m ruff check src/ tests/
Document availability
get_forge_overview distinguishes between documents that are approved in the allowlist and documents that are currently present on disk:
available_documents— approved identifiers whose files exist in the Forge repository right nowunavailable_documents— approved identifiers configured in the allowlist but whose files are absent
Both fields are always present. Both are sorted alphabetically by identifier. The union of the two sets always equals the full approved-document allowlist.
read_forge_document accepts only approved identifiers. It returns a structured error with code DOCUMENT_NOT_FOUND when the identifier is unknown or the file is absent, and DOCUMENT_ERROR for other read failures (binary content, size limit, encoding). It never accepts arbitrary paths.
Security
forge-mcp is strictly read-only. See docs/security-boundary.md.
Separation
Forge is a separate repository and application. forge-mcp does not modify Forge. forge-mcp does not import Forge modules, execute Forge commands, or touch Forge's Git history.
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.