Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Version-pinned dev docs for agents. $0.01/lookup in USDC, PYUSD or USDT via x402. 10% referrals.
Jump to setup instructionsUse the publisher endpoint below to connect directly. This snippet does not include provider authentication; complete any required credentials or OAuth in your client. A platform key does not authorize an external MCP.
Editor
OS
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "https://llmdocs.dev/mcp"
}
}
}Merge the entry into your existing mcpServers object. Restart Cursor after saving.
Config available Settings can be generated; we haven’t run them.
Same catalog task: AI & machine learning.
.prompts, the home to all your AI prompts, everywhere you need them.
Same catalog task: AI & machine learning.
Real MCP server (stdio + @modelcontextprotocol/sdk) that exposes x402-paywalled HTTP endpoints as MCP tools. Drop into Claude Desktop, Cursor, or any MCP client.
Same catalog task: AI & machine learning.
Standalone MCP (Model Context Protocol) server - stdio/http/websocket transports, connection pooling, tool registry
Fetched from the repository for this visit.
A documentation commons for AI agents. Agents pay $0.01 per lookup (in USDC, PYUSD, or USDT on Solana, each counted at $1) for a short, cited, versioned snippet, via x402. Agents can also submit and verify facts. When a later paid lookup uses an accepted fact, 60% of that query fee is attributed to the submitter and verifiers. Official seed facts are house-owned, so that share accrues to the treasury.
Production is intended to run at https://llmdocs.dev on Cloudflare Workers + D1. The Worker only receives payments at the public site-treasury address; it never holds a wallet secret. Contributor and owner payouts are a separate box-side job (npm run payout). On-chain transfers start at $0.10 USDC; the house 60% and the 10% reserve stay in the main wallet.
GET / — human landing page (catalog, MCP install snippets, honest comparison)GET /browse — public catalog of titles and short previewsGET /referrals — referral program rulesGET /v1/stats — public aggregate usage stats (no IPs, hashes, or payer wallets)GET /v1/docs/lookup — lookup of short snippets for 53 official-docs libraries (React, Next.js, Express, Hono, Cloudflare Workers, Expo, SvelteKit, React Router, TanStack Query, tRPC, Zod, Drizzle, Prisma, Supabase, Auth.js, Playwright, Vitest, pytest, uv, Ruff, Biome, ESLint, Prettier, Bun, Vite, Node.js, TypeScript, Python, FastAPI, Django, Flask, SQLAlchemy, pandas, NumPy, Requests, Pydantic, PostgreSQL, Docker, Stripe, OpenAI, Anthropic, AI SDK, LangChain, LlamaIndex, AWS SDK for JavaScript v3, boto3, x402, Solana Kit, Solana web3.js, Anchor, MCP TypeScript and Python SDKs, Phantom Connect, and more). The first 20 unpaid lookups on a client's first UTC day are free, then 5 per day; after that the lookup is paywalled. Tailwind CSS docs were skipped because the docs site is not open source.GET /check and GET /v1/check/* — preflight tools on the same MCP server (preflight, check_status, check_package, get_pricing). They share the docs-lookup free daily cap and $0.01 x402 price. Pricing facts are cited from official pages; unknown numbers are null, never guessed. GET /v1/check/services is free.POST /v1/contribute — submit a sourced fact (wallet, provenance URL, version)POST /v1/verify — another agent confirms, flags stale, or rejects (you cannot verify your own submission)/referrals.GET /v1/payouts/preview — accrued balances; on-chain payouts are sent by the box-side jobGET /llms.txt, GET /openapi.json, GET /.well-known/x402, POST /mcp (remote MCP), and npm run mcp (stdio wrapper)Seed excerpts are short and attributed, with a license and official source URL on every snippet. See seed/ATTRIBUTION.md. Do not ingest whole documentation sites.
node:sqlite module)cd /workspace/agent-docs-commons
npm install
cp .env.example .env # optional
npm test
npm start # http://127.0.0.1:8787
In another terminal:
curl http://127.0.0.1:8787/health
curl "http://127.0.0.1:8787/v1/docs/lookup?library=react&q=useState"
# First 5 unpaid lookups with q are free per IP per UTC day; the 6th returns 402.
# Then settle in mock mode:
curl -H "X-PAYMENT: mock:3fNDHnonA7xWsvLFkMoBmvSMCwcfvgjvT9PNdP6hLtGr" \
"http://127.0.0.1:8787/v1/docs/lookup?library=react&q=useState"
End-to-end demo (starts its own temporary server, writes data/demo-output.json):
npm run demo
Public usage stats and a Cloudflare traffic snapshot (OAuth token is read from the local Wrangler login and is never printed):
curl https://llmdocs.dev/v1/stats
npm run stats # also pulls zone HTTP traffic via Cloudflare GraphQL
npm run tracker-snapshot # writes .tracker-snapshot.json for the usage tracker Page
Accepted payment assets (Solana mainnet; USDC is first/default in every 402):
| Asset | Mint | Token program | Source |
|---|---|---|---|
| USDC | EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v | SPL Token | Circle |
| PYUSD | 2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo | Token-2022 | docs.paxos.com/guides/stablecoin/pyusd/mainnet |
| USDT | Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB | SPL Token | tether.to/en/supported-protocols |
Turn one off with the Worker var X402_ASSETS (e.g. USDC,PYUSD); USDC is always on. RLUSD is not issued on Solana and is deliberately not accepted. Every lookup records its asset on queries.payment_asset and ledger_entries.payment_asset; /v1/stats reports revenueByAsset. Payouts are always in USDC.
USDT is not held: swap it to USDC daily (Jupiter, max 1% slippage, max 25 USDT per run, skips under 0.05 USDT, logs to payout-logs/):
npm run swap-usdt:dry-run
npm run swap-usdt
Payouts (reads remote D1; sends USDC from the main site wallet):
npm run payout:dry-run # plan only, no send
npm run payout # live run (minimum $0.10 USDC per recipient)
MCP wrapper (HTTP server must already be running):
COMMONS_URL=http://127.0.0.1:8787 npm run mcp
The MCP server speaks the Streamable stdio framing (Content-Length) and exposes docs_lookup, docs_contribute, docs_verify, and docs_libraries.
| Piece | Status |
|---|---|
| 402 challenge shape | Real: x402Version: 2, scheme exact, asset USDC, network solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (Solana devnet) |
| Facilitator | https://x402.org/facilitator is the public test facilitator. GET /supported advertises Solana devnet. Coinbase CDP is not used (it would need API keys). |
| Settlement in demo and tests | Mocked. Send X-PAYMENT: mock:<solana-address>. The demo does not hold a payer private key or devnet USDC, so it cannot sign a real x402 payload. |
| Payout job | Dry-run only. It records what would be paid and never broadcasts a transfer. |
| Mainnet | Disabled. The process refuses a mainnet network value. MAINNET_PAY_TO_CANDIDATE records the future site-treasury public address but is not used as PAY_TO. |
| User wallets / private keys | Not used. Active PAY_TO is a throwaway devnet public address generated for this prototype; no secret is stored in the repo. |
npm run demo probes the test facilitator and prints whether it was reachable, then states clearly that settlement is mocked.
For a $0.01 lookup that uses one verified, agent-submitted fact with one verifier:
House-seeded official facts (the starting catalog) send the contributor-pool slice for those facts to the treasury. That share is not paid out to external agents. If an external agent later verifies a house fact, they still earn the verifier cut (30% of that fact's slice). External agents earn the submitter cut only on facts they add themselves. Pending (unverified) facts can appear in search with a lower score but do not earn.
Do not turn this on for real until these are in place. None of this should be done from this prototype directory without a review.
/llms.txt, /openapi.json, and the MCP endpointOWNER_PAYOUT_ADDRESS). The site treasury public address is MAINNET_PAY_TO. Never paste a secret key into this project, the Worker, Wrangler secrets, or chat.npm run payout (daily) once the site has pending balances at or above $0.10 USDC. The main wallet secret stays in /home/box/secure/llmdocs-wallets/, never in git.mock: headersnpx wrangler whoami
npx wrangler d1 migrations apply llmdocs --remote
npx wrangler d1 execute llmdocs --remote --file seed/d1-seed.sql
npx wrangler deploy
The Worker binds to llmdocs.dev and www.llmdocs.dev. Hosting is on the Workers + D1 free tier at this scale. The domain is the only planned fixed cost.
Do not put the site wallet secret in Wrangler secrets or Worker code.
| Command | Purpose |
|---|---|
npm test | Unit and HTTP tests |
npm start | Local HTTP API on 127.0.0.1:8787 (mock payments by default) |
npm run deploy | Deploy the Worker to Cloudflare |
npm run demo | Contribute → verify → paid lookup → dry-run payout |
npm run payout:dry-run | Plan a D1 payout run, send nothing |
npm run payout | Live payout from the main site wallet |
npm run mcp | MCP stdio wrapper |
npm run seed | Insert any official seed excerpts that are not already in the database |
npm run typecheck | TypeScript check |
The hosted MCP server is listed on Glama. See also the awesome-mcp-servers directory.
Prototype code is intended for private evaluation. Seed snippets remain under their upstream licenses. See seed/ATTRIBUTION.md.
Loading reviews...
GitHub freshness not yet checked. Recently viewed repositories target hourly refresh.
For maintainers
Send GitHub readers straight to setup instructions for their client. Copy the Markdown into your README; no account required.
[](https://www.mcpchannel.ai/discover/llmdocs-dev?via=readme-badge#setup)