Forge Agent Hub
# forge-agent-mcp
Open-source [MCP](https://modelcontextprotocol.io) server that wraps the [Forge Agent Hub](https://agent-hub.dentreprise.workers.dev) x402 APIs.
- **Live remote (already hosted):** `https://x402-gateway.forge-x402.workers.dev/mcp` (Streamable HTTP)
- **This package (v1.3.0):** stdio (and optional local Streamable HTTP) covering the full catalog (both API hosts). The hosted remote remains the original gateway MCP.
Contact: jqfpxwv7@mail.grokbot.com
Licence: MIT
This package is not published to npm (no extra account). Clone and run with Node 20+.
## Tools
- `list_endpoints` — free. Lists paid tools, prices (USDC on Base) and HTTP paths.
- One paid tool per catalog path (`iban`, `eu_vat`, `sanctions_check`, …; currently 58). An unpaid call returns the HTTP 402 challenge. If `EVM_PRIVATE_KEY` is set and `@x402/fetch` is installed, the server retries with a signed x402 v2 payment. The hosted remote at the gateway still exposes the original gateway tools only. Wave-1 tools (including two $3 playbooks) accept `?demo=1` for a labelled sample; the first 3 successful real HTTP calls per IP per UTC day are also free.
## stdio
```json
{
"mcpServers": {
"forge-agent-hub": {
"command": "node",
"args": ["/path/to/forge-agent-mcp/src/server.mjs"]
}
}
}
```
```bash
git clone https://github.com/forge-agent-hub/forge-agent-mcp
cd forge-agent-mcp
npm install
node src/server.mjs
```
## Streamable HTTP (local)
```bash
npm run start:http
# listens on 127.0.0.1:8787/mcp
```
## Hosted remote
Prefer the live gateway when you do not want to run a process:
```json
{
"mcpServers": {
"forge-agent-api": {
"url": "https://x402-gateway.forge-x402.workers.dev/mcp",
"transport": "streamable-http"
}
}
}
```
Payment for hosted tools is passed in MCP `_meta` via `@x402/mcp` on the gateway.
## Environment
| Variable | Purpose |
|----------|---------|
| `API_BASE` | Default `https://x402-gateway.forge-x402.workers.dev` |
| `EVM_PRIVATE_KEY` | Optional. Enables automatic payment in this process. Never commit it. |
| `PORT` | HTTP port when run with `--http` (default 8787) |
TDQS
Scored across 59 tools
Most tools target a distinct upstream data source, but several clusters genuinely overlap: fr_company vs fr_legal_status vs bodacc_health vs kyb_check_fr, uk_company vs kyb_check_uk, eu_vat vs kyb_check_eu vs supplier_due_diligence, and ch_uid vs ch_uid_batch all answer partially the same question. Descriptions do help disambiguate (single-lookup vs one-call KYB verdict), but an agent can easily pick the wrong tier or country wrapper.
Naming mixes conventions: country prefixes (fr_company, uk_postcode, eu_vat, ch_uid_batch), noun-only names (iban, rdap, markdown, holidays, fx), and verb_noun or _check/_validate suffixes (list_endpoints, kyb_check_uk, gtIN_validate, openapi_to_mcp). Readable but no single predictable pattern to infer a tool's name from its purpose.
59 tools far exceeds the 3-15 sweet spot and makes the surface hard to scan or select from reliably; the country-specific and batch variants add bulk without new capability classes. It functions as an API catalog rather than a focused toolset.
For a paid-API catalog the coverage is broad and coherent: identity/VAT, company registries, geocoding, sanctions/KYB, x402 plumbing, validators and content extraction, with batch support where needed (ch_uid_batch) and only read-style operations that match the domain. Minor gaps remain: no German, Spanish, Dutch or Italian company registers, no batch variants for most validators, and no generic discovery/search beyond list_endpoints.