MCP Foundry
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Foundryanalyze my Python repo and create an MCP server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Foundry
Turn any codebase into a working MCP (Model Context Protocol) server. Paste a GitHub repo URL or upload code → Foundry discovers the capabilities → you curate which to expose (risk-flagged, destructive opt-in) → it generates a runnable FastMCP server + connect config.
This is the web platform built on top of the codebase-to-mcp skill's engine logic.
Deep-understanding report
Before (or instead of) generating a server, Foundry can read the repo in depth and explain it: after analyzing, click "Generate deep report" for a narrative breakdown — overview, architecture, how it works, key modules, and where to start building on top.
With
ANTHROPIC_API_KEYset, Claude writes the narrative, grounded only in the repo's files/README/capabilities (no fabrication).Without a key, it falls back to a structural report built straight from the discovery data.
Set the key (optional) via a local .env (see .env.example) — it's server-side, never shipped to the browser.
Related MCP server: mcp-anything
Run it
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python -m uvicorn app.main:app --reload --port 8099
# open http://127.0.0.1:8099Layout
mcp-foundry/
├── engine/
│ ├── discovery.py # scan a repo -> capabilities (FastAPI/Flask/Django/plain-python, AST-based)
│ ├── generator.py # capabilities -> FastMCP server bundle (http-proxy or in-process)
│ └── analyzer.py # repo + discovery -> deep-understanding report (Claude or structural)
├── app/
│ ├── main.py # FastAPI: /api/analyze, /api/report, /api/generate, /api/download
│ └── templates/index.html # single-page UI (input -> curate -> generate)
├── tests/
│ ├── test_discovery.py / test_generator.py # engine unit checks
│ └── e2e_test.py # end-to-end against the running server
├── CONTRACT.md # the shared spec (Capability shape + API)
└── ROADMAP.md # v1 scope + phases 2-4 (auth, hosting, more inputs)Status
v1: the core loop works end-to-end (verified — upload/clone → analyze → curate → generate →
download, with the emitted server.py compiling). Single-tenant, in-memory, generates code you run.
Auth, persistence, and managed hosting are Phase 2–3 — see ROADMAP.md.
Test
.venv/bin/python tests/test_discovery.py
.venv/bin/python tests/test_generator.py
.venv/bin/python tests/e2e_test.py # requires the server running on :8099This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/snehaguptanurix/mcp-foundry'
If you have feedback or need assistance with the MCP directory API, please join our Discord server