agent-api-gateway-mcp
Structured web extraction MCP server for AI agents. URL + schema to validated product/article/company JSON via Agent API Gateway. Install with npx -y agent-api-gateway-mcp.
README
Agent API Gateway
Structured web data for AI agents. One API call.
Live product: https://agentapigw.dpdns.org (also https://agent-api-gateway.onrender.com)
Agents send a URL + schema type, get clean JSON. No markdown, no raw HTML — just fields.
For AI agents / crawlers
| Resource | URL |
|---|---|
| llms.txt | https://agentapigw.dpdns.org/llms.txt |
| agent.json | https://agentapigw.dpdns.org/agent.json |
| openapi.json | https://agentapigw.dpdns.org/openapi.json |
| For agents UI | https://agentapigw.dpdns.org/agents |
| Docs | https://agentapigw.dpdns.org/docs |
| Pricing JSON | https://agentapigw.dpdns.org/v1/billing/pricing |
Sister product StatusPlate (status pages): https://statusplate.agentapigw.dpdns.org/
curl -X POST https://agentapigw.dpdns.org/v1/extract \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{"url": "https://store.com/product/123", "schema": "product"}'
Pricing & how to buy
| Plan | Price | What you get | Buy |
|---|---|---|---|
| Free | $0 | 100 queries/mo, API keys, product/article schemas | Dashboard |
| 1,000 credits | $1 once | One-time top-up; stacks on free or any subscription | Buy $1 |
| Hobby | $29/mo | 5,000 queries/mo (+ buy credit packs anytime) | Checkout |
| Pro | $99/mo | 25,000 queries/mo (+ credit packs for bursts) | Checkout |
Payments via Polar hosted checkout (card). Subscriptions set monthly limits; credit packs add bonus credits that stack and do not expire until used. After payment, use the dashboard to create API keys.
Public checkout API: POST /v1/billing/pricing/checkout with {"sku":"credits_1k"} → { url, session_id, amount_cents, credits }.
Public pricing API: GET https://agentapigw.dpdns.org/v1/billing/pricing (includes tiers + credit_packs).
Support
Business support email: support@agentapigw.dpdns.org
Polar public support email for org NexusCore (domain matches organization website https://agentapigw.dpdns.org).
Available schemas
| Schema | Returns |
|---|---|
product |
name, brand, price, currency, in_stock, rating, review_count, description, image, specs, availability |
article |
title, author, date, reading_time, excerpt, content_summary, topics |
company |
name, description, founded, size, funding_total, industry, location, competitors |
Auth
- Email + password (Better Auth) with required email verification
- Password reset via email
- GitHub OAuth (optional):
GITHUB_CLIENT_ID+GITHUB_CLIENT_SECRET - Google OAuth (optional):
GOOGLE_CLIENT_ID+GOOGLE_CLIENT_SECRET
Same-email social sign-in is auto-linked to an existing account (trusted providers).
Email verification
Email/password accounts must verify before a session is created.
- Set
RESEND_API_KEY(and optionallyEMAIL_FROMon a verified domain). - On sign-up, Better Auth emails a one-hour verification link.
- Unverified sign-in is blocked and can resend the link from
/login.
Locally without Resend, verification links are printed to the API console (not production).
GitHub OAuth
Create an OAuth App at https://github.com/settings/developers
| Field | Value |
|---|---|
| Homepage URL | https://agentapigw.dpdns.org |
| Authorization callback URL | https://agentapigw.dpdns.org/api/auth/callback/github |
Existing app (prod): Client ID Ov23liFQUYnTkcewcq2W → https://github.com/settings/applications/3733447
Generate a client secret there, then set both env vars on Render and restart.
Google OAuth
- Open Google Cloud Console → Credentials
- Create project (or pick one) → Create credentials → OAuth client ID
- Application type: Web application
- Authorized JavaScript origins:
https://agentapigw.dpdns.org(andhttp://localhost:3000for local) - Authorized redirect URIs:
https://agentapigw.dpdns.org/api/auth/callback/googlehttp://localhost:3000/api/auth/callback/google(local)
- Copy Client ID + Client secret → set
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETon Render - Redeploy.
/healthshould show"google_oauth": true
GET /health includes "github_oauth": true|false so you can confirm config without leaking secrets.
Local development
cp .env.example .env
npm install
npm run test:product
npm run dev:api
curl http://localhost:3000/health
Architecture
Agent POST /v1/extract { url, schema }
Scraper fetches page HTML
LLM extracts structured JSON
Validator sanitizes business fields
Cache result
→ { name, price, in_stock, ... }
MCP server
export AGENT_API_KEY=sk-your-key # from dashboard; never commit
export API_BASE_URL=https://agentapigw.dpdns.org/v1
npm run mcp
Tools: extract, extract_product, extract_article, extract_company, list_schemas, get_usage.
Setup guide: docs/mcp.md
Legal
Security hygiene
.envis gitignored; use.env.examplefor placeholders only- Never commit API keys, OAuth secrets, or database URLs
npm run check:secretsscans tracked files for high-risk patterns- Server/MCP errors redact secrets before logging or client responses
Docs
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。