streamable-httpMITupdated 18d ago
A free, public MCP (Model Context Protocol) server for Web3 data. Point any MCP client โ Claude Desktop, Cursor, your own agent โ at it and it can read live chain data (block height, gas, transaction status, ERC-20 info, spot prices), look up weather forecasts, build unsigned EVM/Solana transfer transactions, and, for a handful of pay-per-call tools, look up market data, wallets/tokens/ENS, travel search, places/solar/aerial-view data, and social-profile identity.
What can you do with Abstraxn Agent Layer?
Abstraxn Public Web3 MCP Service
A free, public MCP (Model Context Protocol) server for Web3 data. Point any MCP client โ Claude Desktop, Cursor, your own agent โ at it and it can read live chain data (block height, gas, transaction status, ERC-20 info, spot prices), look up weather forecasts, build unsigned EVM/Solana transfer transactions, and, for a handful of pay-per-call tools, look up market data, wallets/tokens/ENS, travel search, places/solar/aerial-view data, and social-profile identity.
No API key, no account, no signup. Free tools are open to anyone; paid tools are settled directly from the caller's own wallet via the x402 payment protocol โ this service never holds or signs funds on your behalf.
Built on the official @modelcontextprotocol/sdk
and NestJS 11.
Contents
- Quick start
- Use it from Claude Desktop / Cursor
- Available tools
- Calling tools directly (curl)
- Configuration
- How it works
- Database
- Security
- Scripts
- Contributing
Quick start
git clone https://github.com/Abstraxn-Labs/abstraxn-agent-layer.git
cd abstraxn-agent-layer
npm install
cp .env.example .env
# Edit .env: Postgres connection + UPSTREAM_RELAY_BASE_URL / ENRICHMENT_RELAY_BASE_URL
# (each required for its own group of paid tools) + WEATHERAPI_KEY (required for weather.forecast)
npm run start:dev
- Health check:
GET http://localhost:3011/health - MCP endpoint:
POST http://localhost:3011/mcp - API docs (health only):
http://localhost:3011/api/docs
Database migrations run automatically on boot โ no separate CLI step needed.
Use it from Claude Desktop / Cursor
Add this to your MCP client's config (e.g. claude_desktop_config.json or Cursor's mcp.json):
{
"mcpServers": {
"abstraxn-public-web3": {
"url": "http://localhost:3011/mcp"
}
}
}
Restart the client and the tools below become available to it โ no further setup.
Available tools
| Tool | Paid? | What it does |
|---|---|---|
network.blocknumber |
No | Current EVM block number or Solana slot. Query one chain or all at once. |
network.transaction_status |
No | Look up a transaction/signature by hash on EVM or Solana. |
network.gas_info |
No | Current gas price + EIP-1559 fee hints for an EVM chain. |
network.token_info |
No | ERC-20 name / symbol / decimals / total supply. |
network.token_price |
No | Spot price via CoinGecko (defaults to ETH/USD). |
network.prepare_transfer |
No | Build an unsigned native/ERC-20/SPL transfer transaction from an explicit from/to/amount. Never signs or broadcasts. |
weather.forecast |
No | Current conditions, forecast, astronomy, location search, historical, and marine weather lookups, 6 actions. |
market.crypto |
Yes | Crypto market-data lookups (CoinGecko-sourced), 6 actions. |
web3.lookup |
Yes | Multi-chain wallet / token / ENS / tx-simulation lookups, 7 actions. |
travel.search |
Yes | Flight and hotel search, 2 actions. |
places.lookup |
Yes | Place / solar / aerial-view lookups, 11 actions. |
social.profile_lookup |
Yes | Person / social-profile identity resolution for a batch of records. |
Tools are namespaced by area (network.*, market.*, web3.*, travel.*, places.*,
social.*) so an MCP client can browse them as a tree rather than a flat list.
How paid tools work: call one with no payment, and you get back a paymentRequired challenge
(not an error). Your wallet client signs it and retries the same call with paymentPayload set โ
your wallet pays directly; this service only relays the request.
Calling tools directly (curl)
Most people will use an MCP client (above), but the endpoint is plain JSON-RPC over HTTP if you want to script against it directly:
BASE=http://localhost:3011
ACCEPT='Accept: application/json, text/event-stream' # required by the MCP spec
# 1. Initialize a session
curl -s -X POST "$BASE/mcp" -H 'Content-Type: application/json' -H "$ACCEPT" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"my-client","version":"1.0"}}}'
# 2. List available tools
curl -s -X POST "$BASE/mcp" -H 'Content-Type: application/json' -H "$ACCEPT" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
# 3. Call a tool
curl -s -X POST "$BASE/mcp" -H 'Content-Type: application/json' -H "$ACCEPT" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"network.token_price","arguments":{"symbol":"bitcoin"}}}'
GET /mcp returns 405 by design โ every call is stateless, so there's no session to resume.
Configuration
Copy .env.example to .env. Everything has a safe default except the one
marked required:
| Variable | Required | Description |
|---|---|---|
PORT |
No | HTTP port (default 3011) |
POSTGRES_HOST / PORT / USER / PASSWORD / DB |
No | Postgres connection, used only for abuse tracking |
PUBLIC_MCP_RATE_LIMIT_PER_MIN / _WINDOW_MS |
No | Global per-IP rate limit (default 30/min) |
CHAIN_RPC_* |
No | Per-chain EVM RPC overrides โ public defaults are used if unset (see src/mcp/utils/chain-registry.util.ts) |
SOLANA_RPC_URL / SOLANA_DEVNET_RPC_URL |
No | Solana cluster RPC overrides |
WEATHERAPI_KEY |
Yes | Free API key for weather.forecast โ get one at WeatherAPI.com's signup page (100K calls/month free tier, no paid features used). Without it, weather.forecast returns a clear error instead of failing the whole service. |
WEATHERAPI_BASE_URL |
Yes | Upstream base URL for weather.forecast โ no default is committed to source, so the tool fails cleanly until this is set (ships as https://api.weatherapi.com/v1 in .env.example; override to point at a mock/self-hosted mirror for local testing). |
UPSTREAM_RELAY_BASE_URL |
Yes | Base URL for the upstream relay behind market.crypto / web3.lookup / travel.search โ no default is committed, so those 3 tools fail until this is set |
ENRICHMENT_RELAY_BASE_URL |
Yes | Base URL for the upstream relay behind places.lookup / social.profile_lookup โ a separate upstream from UPSTREAM_RELAY_BASE_URL, no default is committed |
How it works
MCP client (Claude Desktop, Cursor, your agent)
โ POST /mcp (this service, stateless โ a fresh McpServer per request)
โ free tools: direct chain RPC / CoinGecko calls
โ paid tools: relayed upstream, settled by the caller's wallet via x402
This is a single, standalone deployable โ it doesn't share a workspace or database with any other Abstraxn service. That's deliberate: several MCP registries expect a public MCP server to live in its own repo with one route and one fixed tool set, reviewable end to end.
Stack: Node.js 20+ ยท NestJS 11 ยท @modelcontextprotocol/sdk
^1.30.0 (official SDK) ยท PostgreSQL + TypeORM ยท @x402/core ยท
viem (EVM) + raw JSON-RPC (Solana reads) ยท @solana/web3.js + @solana/spl-token (Solana
transfer building) ยท @skalenetwork/bite (SKALE privacy-encrypted transfers) ยท helmet,
@nestjs/throttler
Database
Postgres is used for abuse tracking only โ no tenant, policy, or config tables exist:
| Table | Purpose |
|---|---|
observed_ips |
One row per caller IP, with a running call count and last-seen time. |
observed_wallets |
One row per wallet address seen paying via x402. |
public_mcp_transactions |
Append-only history of completed paid calls. |
If Postgres is unreachable, a call still succeeds โ tracking writes are best-effort and never block or fail a real MCP request.
Security
Since anyone can call this service with no key, a few invariants matter:
- No SSRF surface: every outbound URL (chain RPC, upstream relay, CoinGecko) comes from server-side config โ no tool accepts a caller-supplied URL.
- Rate limiting is global and IP-keyed โ the only lever available with no accounts. If you
deploy behind a reverse proxy, set
app.set('trust proxy', ...)inmain.ts, or the limiter ends up rate-limiting the proxy instead of real callers. - No secrets beyond the DB password and
WEATHERAPI_KEY, both env-only and never logged โweather.forecastbuilds its provider request URL with the key as a query param, but every log line only ever carries the action name and error message, never the URL itself. - CORS is wildcard by design โ nothing tenant-specific ever crosses an origin here.
Found a security issue? See CONTRIBUTING.md before opening a public issue.
Scripts
| Script | Description |
|---|---|
npm run start:dev |
Run in watch mode |
npm run build |
Compile to dist/ |
npm run start:prod |
Run the compiled build (dist/main) |
npm run lint |
ESLint |
npm test |
Jest โ unit, SDK-level integration, and HTTP smoke tests |
Contributing
Issues and PRs are welcome โ see CONTRIBUTING.md for how to add a new tool and the project's definition of done.
License: MIT
Install
Add Abstraxn Agent Layer to your client. Pick the one you use.
claude mcp add --transport http abstraxn-agent-layer https://mcp.abstraxn.com/mcpcodex mcp add abstraxn-agent-layer --url https://mcp.abstraxn.com/mcp{
"mcpServers": {
"abstraxn-agent-layer": {
"url": "https://mcp.abstraxn.com/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"abstraxn-agent-layer": {
"type": "http",
"url": "https://mcp.abstraxn.com/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"abstraxn-agent-layer": {
"url": "https://mcp.abstraxn.com/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"abstraxn-agent-layer": {
"serverUrl": "https://mcp.abstraxn.com/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance19/25
- Trust16/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 11 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 1.0.0Latest | Aug 12, 2026 |
| 1.0.0-beta.1 | Aug 12, 2026 |