CortexCloud MCP
MCP server for the CortexCloud API, enabling pay-per-call AI generation, web search, market data, and blockchain RPC endpoints via the x402 protocol, billed in USDC on Base without API keys or subscriptions.
README
@cortexcloud/mcp
MCP server for the CortexCloud API — pay-per-call AI generation, data and RPC endpoints through the x402 protocol. No API keys, no subscriptions; every tool call is billed in USDC on Base and settles to the operator's wallet.
Quick start (hosted)
No install required — point any MCP client at the public Streamable HTTP endpoint:
https://api.cortexcloud.org/mcp
Your MCP client handles the x402 payment handshake automatically; each call pays from the wallet your agent is authorized to spend.
Running it yourself
Streamable HTTP server (like the hosted one)
npm run build
EVM_PRIVATE_KEY=0x... node dist/http.js # signs + pays calls; defaults to port 3200
# listening on http://localhost:3200/mcp
| Env | Default | Meaning |
|---|---|---|
EVM_PRIVATE_KEY |
— | Wallet that signs + pays each x402 call. Required. |
PORT |
3200 |
HTTP listen port |
CORTEXCLOUD_URL |
https://api.cortexcloud.org |
Upstream CortexCloud API base |
CORTEXCLOUD_PAYTO |
"0x5a03…ea143" |
Wallet where call revenue settles |
stdio (Claude Desktop / CLI)
{
"mcpServers": {
"cortexcloud": {
"command": "npx",
"args": ["-y", "@cortexcloud/mcp"],
"env": { "EVM_PRIVATE_KEY": "0x..." }
}
}
}
Tools (22)
AI — chat_completions responses embeddings models image_generation text_to_speech
Search & news — web_search search_contents news
Market/data — prices coins_search crypto_history fx_list fx_price defi_yields defi_protocols
Chain — base_balance base_token_balance eth_balance ethereum_rpc dex_search dex_pairs
Schema for every tool is exposed via MCP's tools/list — no docs drift, what a client sees is what runs.
How x402 works under the hood
Each call performs an x402 HTTP exchange against the CortexCloud API: request → payment challenge → signed TransferWithAuthorization → valid data. The SDK core handles the handshake; @x402/evm builds + signs the transfer; @x402/fetch drives the HTTP loop. Money in is trustless — cold settlement on-chain, no API-key storage, no subscriptions, no per-seat licensing.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.