loading…
Search for a command to run...
loading…
Provides real-time AI infrastructure data including LLM costs, model benchmarks, API deprecations, quality scores, and agent spend tracking. Supports authentica
Provides real-time AI infrastructure data including LLM costs, model benchmarks, API deprecations, quality scores, and agent spend tracking. Supports authentication, rate limiting, x402 micropayments, and Stripe billing.
A Model Context Protocol (MCP) server providing real-time AI infrastructure data via TypeScript + Hono on Cloudflare Workers.
AgentLayer MCP Server exposes 5 endpoints for AI agent consumption:
| Endpoint | Description |
|---|---|
/llm-costs |
Real-time LLM pricing data across providers |
/model-benchmarks |
Model performance benchmarks and comparisons |
/api-deprecations |
Track deprecated API versions and migration paths |
/quality-scores |
AI model quality scores with sentiment analysis |
/agent-spend |
Agent API spend tracking with x402 micropayment support |
npm install
Copy .env.example to .env and configure:
cp .env.example .env
Required variables:
NEON_DATABASE_URL - Neon Postgres connection stringFIRECRAWL_API_KEY - Firecrawl API keySTRIPE_SECRET_KEY - Stripe secret keySTRIPE_STARTER_PRICE_ID - Stripe price ID for Starter tierSTRIPE_PRO_MONTHLY_PRICE_ID - Stripe price ID for Pro tierSTRIPE_SCALE_MONTHLY_PRICE_ID - Stripe price ID for Scale tier# Apply schema to Neon
npx tsx scripts/setup-neon-db.ts
# Verify tables created
npx tsx scripts/verify-db.ts
npm run dev
npm run deploy
All endpoints require an API key via header or query parameter:
X-API-Key: your-api-key
# or
?api_key=your-api-key
Returns LLM pricing data.
curl -H "X-API-Key: your-key" https://your-worker.workers.dev/llm-costs
Returns model benchmark results.
curl -H "X-API-Key: your-key" https://your-worker.workers.dev/model-benchmarks
Returns deprecated API versions.
curl -H "X-API-Key: your-key" https://your-worker.workers.dev/api-deprecations
Quality scores with optional sentiment refresh.
# Get scores
curl -H "X-API-Key: your-key" https://your-worker.workers.dev/v1/quality-scores
# Trigger sentiment refresh
curl -H "X-API-Key: your-key" "https://your-worker.workers.dev/v1/quality-scores?refresh=true"
Log agent API spend with x402 micropayment support.
curl -X POST -H "X-API-Key: your-key" \
-H "Content-Type: application/json" \
-d '{"agent_id":"agent-123","model":"gpt-4","tokens_used":1500,"cost":0.045,"payment_receipt":"x402-receipt"}' \
https://your-worker.workers.dev/agent-spend
Retrieve agent spend records.
curl -H "X-API-Key: your-key" "https://your-worker.workers.dev/agent-spend?agent_id=agent-123"
This server is published to the official MCP Registry. To submit updates:
Install the MCP publisher CLI:
brew install modelcontextprotocol/tap/mcp-publisher
# or download from: https://github.com/modelcontextprotocol/registry/releases
Authenticate with GitHub:
mcp-publisher login github
Publish to registry:
mcp-publisher publish
Submit your server at:
Server details:
The server exposes an MCP-compatible endpoint at /mcp using Streamable HTTP transport:
{
"mcpServers": {
"agentlayer": {
"url": "https://agentlayer-mcp-server.your-subdomain.workers.dev/mcp"
}
}
}
| Tool | Description |
|---|---|
get_llm_costs |
Get real-time LLM pricing data across providers |
get_model_benchmarks |
Get model performance benchmarks |
get_api_deprecations |
Track deprecated API versions |
get_quality_scores |
Get AI model quality scores with sentiment analysis |
log_agent_spend |
Log AI agent API spend with x402 micropayment support |
get_agent_spend |
Retrieve agent API spend records |
src/
├── index.ts # Main Hono app with all endpoints
├── routes/
│ └── v1-quality-scores.ts # Quality scores route with sentiment refresh
└── scrapers/
└── reddit-hn-sentiment.ts # Reddit/HN sentiment scraper via Firecrawl
GitHub Actions workflow (.github/workflows/deploy.yml):
mainRequired GitHub secrets:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_IDNEON_DATABASE_URLFIRECRAWL_API_KEYSTRIPE_SECRET_KEYSTRIPE_STARTER_PRICE_IDSTRIPE_PRO_MONTHLY_PRICE_IDSTRIPE_SCALE_MONTHLY_PRICE_IDMIT
For issues and feature requests, please use the GitHub issue tracker.
Run in your terminal:
claude mcp add agentlayer-mcp-server -- npx Yes, AgentLayer Server MCP is free — one-click install via Unyly at no cost.
No, AgentLayer Server runs without API keys or environment variables.
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
Open AgentLayer Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Payments, customers, subscriptions
by Stripe110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n
by malamutemayhemUnified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa
by whiteknightonhorseDeploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All finance MCPs