Citely-x402
Integrates with Coinbase's CDP service to facilitate USDC micropayments on the Base network, enabling gated access to content via the x402 protocol.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Citely-x402search for articles on GOAT network integration"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Citely-x402
An open MCP server that gates content & tools behind x402 stablecoin micropayments — with a pluggable content provider and a pluggable payment network (Base today, GOAT Network as the headline integration).
Most "agent payments" demos rebuild x402 from scratch. This repo extracts a clean, reusable gateway: an MCP server exposing search_articles + get_article, gated by a free-quota entitlement and then x402 pay-per-call. Two seams keep it generic and keep any proprietary data out.
Quickstart
pnpm install
cp .env.example .env # defaults to base-sepolia
pnpm example # boots the gateway on http://localhost:3402
pnpm tsx scripts/agent-client.ts # discovers → hits the 402The 402 → pay → 200 flow, end to end:
# 1) No payment → 402 with the x402 payment requirements
curl -i http://localhost:3402/api/read/stablecoin-licensing-basics
# HTTP/1.1 402
# [{"scheme":"exact","network":"eip155:84532","maxAmountRequired":"300000",
# "asset":"0x036CbD…","payTo":"0x…","resource":"/read/stablecoin-licensing-basics"}]
# 2) With an X-PAYMENT proof → 200 with the body
curl -H "x-payment: <proof>" http://localhost:3402/api/read/stablecoin-licensing-basicsRelated MCP server: x402-mcp
Architecture
x-citely-account (ERC-8004 id)
AI agent ───────────────────────────────────────┐
│ MCP: search_articles / get_article │
│ or GET /api/read/:slug ▼
│ ┌──────────────────┐
└────────────────────────────────────▶│ gateway │
│ 1. entitlement │ free quota per account
│ 2. x402 paywall │ 402 → USDC → 200
│ 3. ContentProvider ─▶ your catalog/body
└──────────────────┘Two seams isolate everything specific to your deployment:
ContentProvider(src/content/provider.ts) —listCatalog()/getContent(slug). The repo shipssampleContentProviderwith dummy public content. Bring your own by implementing the interface.PaymentNetwork(src/payment/network.ts) —{ id, caip2, usdcAddress, buildResourceServer() }. Ships a Base-Sepolia adapter and a GOAT adapter.
Swap the payment network
Set X402_NETWORK (see .env.example):
| CAIP-2 | Facilitator / token |
|
| Coinbase CDP ( |
|
|
|
|
|
|
GOAT is an EVM-compatible, Bitcoin-secured L2, so the same ExactEvmScheme (EIP-3009 USDC) applies. See docs/goat-integration.md and docs/erc-8004-identity.md.
Bring your own content
import { createGatewayMcpHandler } from "citely-x402";
import type { ContentProvider } from "citely-x402";
const myProvider: ContentProvider = {
listCatalog: (q) => /* your catalog */ [],
getContent: (slug) => /* your body + provenance */ null,
};
const handler = createGatewayMcpHandler({
provider: myProvider, store: myUsageStore, freeLimit: 3, subscribeUrl: "https://…",
});
export { handler as GET, handler as POST };Relation to Citely
This is the open x402/MCP gateway. Citely (private) plugs its own provenance-backed content provider into these same interfaces — the proprietary content, on-chain (EAS) provenance, and expert-review pipeline stay private. Nothing in this repo is Citely content; the shipped provider is dummy sample data.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server that enables AI agents to access paid AI inference and web tools via HTTP 402 micropayments in USDC on Base, using the agent's wallet as identity.Last updated14543MIT
- Alicense-qualityDmaintenanceA hybrid MCP server that integrates x402 payment protocol, providing tools to manage cryptocurrency payments and dynamically create HTTP endpoints protected by payments.Last updated160MIT
- Alicense-qualityDmaintenanceMCP server that enables AI agents to automatically pay for and access paywalled content via the x402 payment protocol.Last updated3MIT
- Flicense-qualityDmaintenanceEnables no-code creation, preview, deployment, and monetization of MCP servers via x402 micropayments, including a virtual file system, sandbox preview, and tool monetization.Last updated1
Related MCP Connectors
Personal MCP server for humans who create. Proof of authorship, license control.
Agent-commerce MCP server for x402/USDC payments and affiliate splits on Base.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/web3yaso/Citely-x402'
If you have feedback or need assistance with the MCP directory API, please join our Discord server