agentforge
MCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.
README
AgentForge
One API key. 300+ AI agents. Zero configuration.
AgentForge is a unified API gateway and marketplace for AI agents. Use a single API key to access hundreds of AI agents — no need to manage individual API keys, authentication, or billing for each one.
Live Demo | API Docs | Browse Agents
Why AgentForge?
Most AI agent platforms make you manage separate API keys, auth flows, and billing for every agent you use. AgentForge gives you one key to rule them all.
- Unified API — Call any agent through a single REST endpoint
-
- 300+ agents — Pre-loaded with trending agents from GitHub and HuggingFace
-
- Creator economy — Publish your own agents and earn revenue (90% creator share)
-
- Built for developers — RESTful API, streaming support, API key auth, rate limiting
-
-
MCP support — Use AgentForge as a Model Context Protocol server to access all agents from Claude, Cursor, and other MCP clients
-
Quick Start
-
Use the API (no install needed)
-
# 1. Get your API key at https://patreon.zeabur.app/#/settings/api-keys # 2. Call any agent: curl -X POST https://patreon.zeabur.app/api/agents/AGENT_ID/invoke \ -H "Authorization: Bearer af_k_your_key_here" \ -H "Content-Type: application/json" \ -d '{"messages": [{"role": "user", "content": "Hello!"}]}'Python
import requests response = requests.post( "https://patreon.zeabur.app/api/agents/AGENT_ID/invoke", headers={"Authorization": "Bearer af_k_your_key_here"}, json={"messages": [{"role": "user", "content": "Hello!"}]} ) print(response.json())JavaScript
const response = await fetch( "https://patreon.zeabur.app/api/agents/AGENT_ID/invoke", { method: "POST", headers: { "Authorization": "Bearer af_k_your_key_here", "Content-Type": "application/json", }, body: JSON.stringify({ messages: [{ role: "user", content: "Hello!" }], }), } ); const data = await response.json();MCP Server (Model Context Protocol)
AgentForge ships a built-in MCP server (
mcp/server.ts) that exposes all 300+ agents as MCP tools. This lets any MCP-compatible client — Claude Desktop, Cursor, Continue, etc. — discover and invoke agents with zero extra configuration.MCP Tools exposed
Tool Description list_agentsList all agents on the marketplace (optional category/limit filter) get_agentGet full details for a specific agent by ID invoke_agentInvoke any agent with a chat-completion style messages array check_agent_healthCheck the health/availability of a specific agent get_platform_statsRetrieve aggregate platform statistics Running the MCP server locally
git clone https://github.com/doggychip/agentforge.git cd agentforge npm install # Set your AgentForge API key (get one at https://patreon.zeabur.app/#/settings/api-keys) export AGENTFORGE_API_KEY=af_k_your_key_here # Start the MCP server (communicates over stdio) npm run mcp:startConnecting to Claude Desktop
Add the following to your
claude_desktop_config.json(~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS):{ "mcpServers": { "agentforge": { "command": "npx", "args": ["tsx", "/path/to/agentforge/mcp/server.ts"], "env": { "AGENTFORGE_API_KEY": "af_k_your_key_here" } } } }Restart Claude Desktop. You will now see AgentForge tools available in the MCP connector panel.
Connecting to other MCP clients
Any MCP client that supports stdio transport can connect to AgentForge:
# Generic stdio invocation AGENTFORGE_API_KEY=af_k_your_key_here npx tsx /path/to/agentforge/mcp/server.tsEnvironment variables for the MCP server
Variable Required Description AGENTFORGE_API_KEYYes (for invoke_agent) Your AgentForge API key AGENTFORGE_BASE_URLNo Override base URL (default: https://patreon.zeabur.app)Features
For Users
- Browse and discover 300+ AI agents, tools, and APIs
-
- One API key to access all agents
-
- Free and paid agents with transparent pricing
-
- Streaming support for real-time responses
-
-
Usage tracking and billing history
-
For Creators
-
- Publish unlimited agents with your own pricing
-
- 90% revenue share (10% platform fee)
-
- Stripe Connect payouts to your bank account
-
- Analytics dashboard with subscriber metrics
-
-
API proxy — we handle auth, rate limiting, and billing
-
Platform
-
- Google OAuth + email/password authentication
-
- Two-factor authentication (TOTP)
-
- Rate limiting (1000 req/hour, 10000 req/day per key)
-
- Agent health monitoring
-
-
Auto-import from GitHub trending and HuggingFace
-
API Endpoints
-
| Method | Endpoint | Description |
-
|--------|----------|-------------|
-
|
POST|/api/agents/:id/invoke| Invoke an agent | -
|
GET|/api/agents| List all agents | -
|
GET|/api/agents/:id| Get agent details | -
|
GET|/api/agents/:id/health| Check agent health | -
|
GET|/api/stats| Platform statistics | -
Full API documentation: patreon.zeabur.app/#/docs
-
Self-Hosting
-
Prerequisites
-
- Node.js 20+
-
-
PostgreSQL
-
Setup
-
git clone https://github.com/doggychip/agentforge.git cd agentforge npm install # Set environment variables export DATABASE_URL=postgresql://user:password@host:5432/agentforge # Start development server (auto-migrates and seeds) npm run devEnvironment Variables
Variable Required Description DATABASE_URLYes PostgreSQL connection string STRIPE_SECRET_KEYNo Stripe API key for payments STRIPE_WEBHOOK_SECRETNo Stripe webhook signing secret GOOGLE_CLIENT_IDNo Google OAuth client ID GOOGLE_CLIENT_SECRETNo Google OAuth client secret SMTP_HOSTNo SMTP server for emails SMTP_USERNo SMTP username SMTP_PASSNo SMTP password Deploy to Zeabur
- Push to GitHub
-
- Create project in Zeabur
-
- Import the repo + add PostgreSQL service
-
-
Zeabur auto-injects
DATABASE_URL -
Tech Stack
-
- Frontend: React 18, Tailwind CSS, shadcn/ui, TanStack Query, wouter
-
- Backend: Express 5, Drizzle ORM, Passport
-
- Database: PostgreSQL
-
- Payments: Stripe Connect
-
- Auth: bcrypt, Google OAuth, TOTP 2FA
-
- Deploy: Docker / Zeabur
-
-
MCP: @modelcontextprotocol/sdk (TypeScript)
-
Project Structure
-
agentforge/ ├── client/src/ # React frontend │ ├── pages/ # Route pages │ ├── components/ # Shared components │ └── hooks/ # Auth, query hooks ├── mcp/ │ └── server.ts # MCP server (5 tools over stdio) ├── server/ │ ├── routes.ts # API endpoints │ ├── storage.ts # Database layer │ └── db.ts # Connection + migrations ├── shared/ │ └── schema.ts # Drizzle schema + types └── DockerfileContributing
Pull requests welcome. For major changes, open an issue first.
License
MIT
-
-
-
-
-
-
-
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。