MCP Foundry

MCP Foundry

Turns any codebase into a working MCP server by analyzing GitHub repos or uploaded code, discovering capabilities, and generating a runnable FastMCP server with curated connections.

Category
Visit Server

README

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_KEY set, 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.

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:8099

Layout

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 :8099

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured