{"id":51433543,"url":"https://github.com/mariojgt/mcpfactory","last_synced_at":"2026-07-05T05:30:33.572Z","repository":{"id":355680049,"uuid":"1229101566","full_name":"mariojgt/mcpfactory","owner":"mariojgt","description":"Pick the tools you want, click build, download a ready-to-run MCP server. 32 integrations, browser-built, zero infra.","archived":false,"fork":false,"pushed_at":"2026-05-04T19:27:54.000Z","size":406,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-04T20:28:47.049Z","etag":null,"topics":["anthropic","claude","claude-code","claude-desktop","mcp","mcp-server","mcp-tools","model-context-protocol","nextjs","typescript"],"latest_commit_sha":null,"homepage":"https://mariojgt.github.io/mcpfactory","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mariojgt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-04T17:45:58.000Z","updated_at":"2026-05-04T19:27:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mariojgt/mcpfactory","commit_stats":null,"previous_names":["mariojgt/mcpfactory"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mariojgt/mcpfactory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariojgt%2Fmcpfactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariojgt%2Fmcpfactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariojgt%2Fmcpfactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariojgt%2Fmcpfactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariojgt","download_url":"https://codeload.github.com/mariojgt/mcpfactory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariojgt%2Fmcpfactory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35144844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anthropic","claude","claude-code","claude-desktop","mcp","mcp-server","mcp-tools","model-context-protocol","nextjs","typescript"],"created_at":"2026-07-05T05:30:32.892Z","updated_at":"2026-07-05T05:30:33.565Z","avatar_url":"https://github.com/mariojgt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n![MCP Factory — pick the tools you want, click build, download a ready-to-run MCP server](./public/og-image.png)\n\n# MCP Factory\n\n**Pick the tools you want, click build, download a ready-to-run MCP server.**\n\nA static, browser-built dashboard that assembles custom **Model Context Protocol** servers from a curated catalog of integrations — Stripe, GitHub, Slack, Notion, Linear, PostgreSQL, OpenAI, Gmail, YouTube, Anthropic, and 22 more. The build runs entirely in your browser. No backend, no accounts, no infra.\n\nEvery download includes a CLI that wires the server into Claude Code, Claude Desktop, VSCode, or Cursor in one command.\n\n\u003c/div\u003e\n\n---\n\n## Highlights\n\n- **32 tool catalog · 187 MCP operations** — Stripe, GitHub, Slack, Notion, Linear, PostgreSQL, Cloudflare, AWS S3, Sentry, Discord, Figma, Brave Search, Anthropic API, Replicate, FFmpeg, Remotion, Google Calendar, X/Twitter, Vercel, generic HTTP/Fetch escape hatch, browser/Puppeteer, Gmail, YouTube, LinkedIn, Vimeo, ElevenLabs, fal.ai, OpenAI, Mailtrap, PDF tools, Google Maps, Thumbnail Studio.\n- **Live inspector + curl bridge** — like ngrok + Postman for MCP. The wrapper proxies every client request, shows it in a real-time dashboard at `localhost:7474`, AND exposes an HTTP bridge so you can fire tool calls from curl, scripts, or the dashboard's built-in playground. Replay any past call, copy as curl, edit \u0026 resend. Logs to `mcpfactory.log.jsonl` + `.txt`.\n- **One-command client wiring** — `npx mcpfactory connect claude-code` writes the right config in the right place. Targets: Claude Code (project + user), Claude Desktop (mac/win/linux), VSCode, Cursor.\n- **OAuth helper** — `npx mcpfactory auth google-youtube` opens the browser, captures the redirect, writes refresh tokens to `.env`. Supported: YouTube, Gmail, Calendar, LinkedIn, X (PKCE).\n- **Read-only mode** — every operation is tagged `safe / write / destructive`. Toggle `--read-only` at build time or `MCPFACTORY_READ_ONLY=1` at runtime to disable mutating tools.\n- **OpenAPI import** — `npx tsx scripts/openapi-import.ts \u003cspec-url\u003e` generates a working tool from any OpenAPI 3.x spec (verified against the Petstore: 19 operations from one URL).\n- **Build customization** — custom server name, sub-selection of operations, lockfile (`mcpfactory.lock.json`) + `npx mcpfactory upgrade` to refresh.\n- **Framework helpers** — `withProgress` (MCP `notifications/progress`), `cached` (TTL memoizer), `McpToolError` (typed errors with retry hints), `wrapHandler` (consistent envelope).\n- **Tested** — per-tool smoke harness boots each generated server via real JSON-RPC. CI runs the whole catalog on every PR.\n\n## Try it\n\n```bash\nnpm install\nnpm run dev                     # http://localhost:3000\n\n# In another terminal — build a test zip and verify it boots\nnpx tsx scripts/build-from-fs.ts stripe,github,fetch test-builds\ncd test-builds/mcp-stripe-github-fetch\nnpm install\nnpx mcpfactory                  # interactive menu\n```\n\n## curl bridge\n\nEvery running inspector exposes an HTTP API at the dashboard port (default `7474`):\n\n| Endpoint | Method | Body |\n|---|---|---|\n| `/api/tools` | GET | — — returns the live `tools/list` |\n| `/api/call` | POST | `{ \"name\": \"\u003ctool\u003e\", \"arguments\": {...} }` — fires a `tools/call` |\n| `/api/raw` | POST | `{ \"method\": \"...\", \"params\": {...} }` — arbitrary JSON-RPC |\n| `/api/state` | GET | — — recent events ring buffer |\n\n```bash\n# Start the wrapper (auto-spawns the MCP server)\nnpx mcpfactory inspect --open      # also opens the browser dashboard\n\n# In another terminal — call any tool\ncurl -sX POST http://localhost:7474/api/call \\\n  -H 'content-type: application/json' \\\n  -d '{\"name\":\"http_get\",\"arguments\":{\"url\":\"https://api.github.com/zen\"}}'\n\n# Or the friendlier CLI\nnpx mcpfactory call http_get '{\"url\":\"https://api.github.com/zen\"}'\nnpx mcpfactory call stripe_get_balance\n```\n\nIn the dashboard, click **▶ NEW REQUEST** for the playground form (tool dropdown + JSON args + send), or click any past call to **Replay** / **Edit \u0026 resend** / **Copy as curl**.\n\n## How it works\n\n```\n   Browser dashboard                  Generated build\n   ┌────────────────────┐            ┌──────────────────────┐\n   │  pick tools        │ ─────────▶ │  custom-mcp.zip      │\n   │  click BUILD       │  JSZip     │  · src/, bin/        │\n   │  (no backend)      │            │  · .env.example      │\n   └────────────────────┘            │  · mcpfactory CLI    │\n                                     └──────────────────────┘\n                                                │\n                                                ▼\n                          npm install \u0026\u0026 npx mcpfactory connect claude-code\n                                                │\n                                                ▼\n                                    Claude Code uses your tools\n```\n\nThe build runs entirely client-side. The dashboard fetches:\n- `/manifest.json` — tool catalog metadata\n- `/tool-source/...` — each selected tool's source files\n- `/skeleton/...` — templates rendered into every build (package.json, src/index.ts, README, the CLI)\n\nJSZip assembles them in the browser, your browser downloads the result.\n\n## CLI commands (shipped in every build)\n\n| Command | What it does |\n|---|---|\n| `npx mcpfactory` | Interactive menu |\n| `npx mcpfactory env` | Walk through `.env` setup with prompts |\n| `npx mcpfactory auth \u003cprovider\u003e` | OAuth flow (`google-youtube`, `google-gmail`, `google-calendar`, `linkedin`, `twitter`) |\n| `npx mcpfactory connect \u003ctarget\u003e [--inspect]` | Wire into Claude Code/Desktop, VSCode, Cursor |\n| `npx mcpfactory inspect [--port N] [--open]` | Run the inspector standalone |\n| `npx mcpfactory call \u003ctool\u003e [json-args]` | Fire a tool through the running inspector (the curl bridge) |\n| `npx mcpfactory logs [--json]` | Tail `mcpfactory.log.txt` (or `.jsonl`) |\n| `npx mcpfactory upgrade` | Show build manifest + how to refresh against latest catalog |\n| `npx mcpfactory doctor` | Check env vars + integration paths |\n| `npx mcpfactory start` | Run the MCP server (no inspector) |\n\n## Repo layout\n\n```\nmcpfactory/\n├── app/                         Next.js dashboard\n├── components/                  Neo-brutalist React components\n├── lib/\n│   ├── manifest.ts              Typed catalog (32 tools, 9 categories)\n│   ├── builder.ts               In-browser zip pipeline (JSZip + Promise.all)\n│   ├── auth-type.ts             Auth-level inference (oauth/api-key/none)\n│   └── types.ts                 Tool / SafetyLevel / BuildLock interfaces\n│\n├── public/\n│   ├── tool-source/             Tool source served as static assets\n│   │   ├── tools/_framework.ts  Shared helpers (withProgress, cached, errors, wrap)\n│   │   ├── tools/\u003cname\u003e.ts      Per-tool API wrapper\n│   │   └── register/\u003cname\u003e.ts   MCP tool registration with Zod schemas\n│   └── skeleton/                Templates rendered into every build\n│       └── bin/\n│           ├── mcpfactory.mjs   CLI (env / auth / connect / inspect / logs / upgrade / doctor)\n│           ├── inspect-wrapper.mjs Live inspector (HTTP + SSE + JSONL/TXT logs)\n│           └── oauth-helper.mjs OAuth helper (localhost callback, PKCE for X)\n│\n├── scripts/\n│   ├── build-from-fs.ts         CI-friendly local builder\n│   ├── smoke-test.ts            Per-tool smoke runs via real MCP protocol\n│   ├── openapi-import.ts        Generate tools from any OpenAPI 3.x spec\n│   └── test-build.ts            Live-server build (mirrors the browser builder)\n│\n├── .github/workflows/\n│   ├── ci.yml                   Typecheck + sharded smoke tests on PR\n│   └── pages.yml                Auto-deploy dashboard to GitHub Pages\n│\n└── next.config.mjs              Static export (output: 'export')\n```\n\n## Adding a new tool\n\nTwo paths.\n\n**Hand-written** (full control):\n\n1. Drop your tool source into `public/tool-source/tools/\u003cname\u003e.ts` and matching `public/tool-source/register/\u003cname\u003e.ts` (must export `register\u003cName\u003eTools(server)`).\n2. Add a typed entry to `lib/manifest.ts` with `name`, `category`, `files`, `imports`, `registerCalls`, `deps`, `env`, optional `safety` map.\n3. Run `npx tsx scripts/smoke-test.ts \u003cname\u003e` to verify it boots.\n\n**From OpenAPI** (force multiplier):\n\n```bash\nnpx tsx scripts/openapi-import.ts https://api.example.com/openapi.json \\\n  --id example --name \"Example API\" --auth bearer --env EXAMPLE_TOKEN\n```\n\nThis generates the tool, register, and a manifest entry. Tweak as needed.\n\n## Production build\n\n```bash\nnpm run build              # static export to ./out/\n```\n\nPush to `main` → the included GitHub Action deploys `out/` to Pages.\n\nFor deployment under a subpath (e.g. `user.github.io/mcpfactory`), set:\n\n```bash\nNEXT_PUBLIC_BASE_PATH=/mcpfactory npm run build\n```\n\nThe CI workflow auto-detects the repo name and sets this for you.\n\n## Stack\n\n| Piece | Tech |\n|---|---|\n| Dashboard | Next.js 14 + React 18 + TypeScript + Tailwind |\n| Zip building | JSZip, in-browser |\n| Generated server | TypeScript + `tsx` + `@modelcontextprotocol/sdk` |\n| Shipped CLIs | Node.js (zero deps — built-ins only) |\n| Inspector | Node `http` + Server-Sent Events |\n| Hosting | GitHub Pages (static) |\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariojgt%2Fmcpfactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariojgt%2Fmcpfactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariojgt%2Fmcpfactory/lists"}