@getplexa/mcp
This server gives MCP-enabled agents two paid, USDC-per-call safety and pricing tools for trading tokens on Base, Polygon, and Arbitrum.
plexa_quote: get an executable on-chain quote for a swap of a given size — real fill price (not spot/mid), price impact in bps, realizable depth, per-leg route, worst-case slippage, and confidence.plexa_pretrade_check: screen a Base token for economic traps (rug/honeypot/thin liquidity) before buying — returns verdict, reasons, risk profile, liquidity coverage, and an executable quote.Works through any MCP client (Claude Desktop, Cursor, custom agents) via
npx, no installation needed.Payments are handled automatically via x402: the server pays 402s with locally signed USDC authorizations from your configured wallet; your private key never leaves your machine.
Honest failures: missing wallet or API/network errors return clear errors, never fabricated clean results.
Provides executable on-chain liquidity quotes on Polygon (along with Base and Arbitrum), returning real fill prices under a given size, price impact, route details, worst-case slippage, and confidence before trading.
Click on "Deploy 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., "@@getplexa/mcp Check token 0xabc on Base for economic safety and quote $500"
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.
@getplexa/mcp — Plexa MCP server
A Model Context Protocol server that gives any MCP client (Claude Desktop, Cursor, your own agent) two economic-safety tools from Plexa — the x402-native economic-safety layer for trading agents — paid per call in USDC, no accounts:
Tool | Wraps | Price | Returns |
|
| $0.02 | Executable fill price under size (not mid/spot), price impact (bps), realizable depth, per-leg route, worst-case slippage, confidence — from canonical on-chain quoters on Base, Polygon & Arbitrum. |
|
| $0.05 | Two levels. |
It is a thin client of the public API (https://api.getplexa.com) — it pays a 402 automatically,
signs the USDC authorization locally with your wallet, and never sees your key. The liquidity engine
stays behind the API.
Why
A generic wallet guard answers "can I sign this transaction?". It can't answer the economic question an automated trader actually needs: what price will this swap really fill at under my size, and is this token a trap (rug / honeypot / thin liquidity)? Plexa answers both. This package puts those answers one tool-call away inside any MCP-speaking agent.
Related MCP server: mev-history-mcp
Install
Nothing to install — point your MCP client at the package via npx. It is fetched and run on demand.
Claude Desktop
Add to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"plexa": {
"command": "npx",
"args": ["-y", "@getplexa/mcp"],
"env": {
"PLEXA_BASE_URL": "https://api.getplexa.com",
"AGENT_WALLET_KEY": "0x<your funded wallet private key>",
"CHAIN": "base"
}
}
}
}Cursor
Add to ~/.cursor/mcp.json (or Settings → MCP → Add) — the same mcpServers block as above.
Restart the client. You should see the plexa_quote and plexa_pretrade_check tools available.
Configuration
All configuration is via environment variables (set in the env block of your MCP config):
Variable | Default | Notes |
|
| The public API. The real URL — not a secret. |
| (none) | Required to pay. Funded wallet private key — pays per call and signs locally. Plexa never receives it. Without it, tools return a clear |
|
|
|
Funding. Use a dedicated, low-balance wallet with a little USDC on CHAIN to pay per call
(quotes $0.02, checks $0.05). The wallet signs an EIP-3009 USDC authorization per request; Plexa returns
the result only after the payment settles on-chain (settle-before-serve).
Your key is a secret. Prefer your MCP client's secret storage if it has one. Never commit it.
How payment works (x402 in MCP)
MCP has no native payment. This server acts as an x402 client: it wraps fetch, so when Plexa
replies 402 Payment Required it reads the payment requirements, signs a USDC authorization with your
wallet (locally), and retries. The signed authorization is the only thing that leaves your machine —
never the key. Payment is made on CHAIN, so you fund one wallet on one chain.
If no AGENT_WALLET_KEY is set, the tools return an honest 402 error explaining a funded wallet is
needed — they never fabricate a result.
Example
Once configured, just ask your agent naturally — it will call the tools:
"Before I buy this token
0x…on Base, check it with Plexa and get me an executable quote for $500."
The agent calls plexa_pretrade_check (verdict + reasons) and plexa_quote (executable price under
$500), pays $0.05 + $0.02 in USDC automatically, and answers with real on-chain economics.
What comes back
Beyond verdict / triggers / risk_profile / liquidityCoverage, every pre-trade
response carries six blocks of context. Live capture, WETH, 2026-08-20T14:46:29Z, Base block
50223921 — the note string each block carries is long and is cut here, nothing else is:
{
"identity": {
"name": "Wrapped Ether",
"symbol": "WETH",
"decimals": 18,
"totalSupplyRaw": "239296586519181917702210",
"totalSupply": 239296.58651918193
},
"valuation": {
"fdvExecutableUsd": 543916397.6557496,
"basis": "totalSupply(this chain) x executablePrice(at sizeUSD)"
},
"ownership": {
"ownerAddress": null,
"ownerRenounced": null,
"isMintable": false,
"creatorAddress": "0xe8a3ecea7d6a688ee903173024225357ddf29e93",
"creatorBalance": 0.000289172466091074,
"creatorSharePct": 1.208427041511075e-07
},
"dormancy": {
"topHolderIdleDays": null,
"lastTopHolderMoveBlock": null,
"headBlock": null
},
"market": {
"priceUsdSpot": 2277.76,
"volume24hUsd": 551324354.8699999,
"marketCapUsd": 542587444,
"holderCount": 5223863
},
"sources": {
"*": "measured",
"risk_profile.concentration": "unavailable:holder-axis-produced-nothing",
"flags.F_CONC": "unavailable:holder-axis-produced-nothing",
"valuation": "derived:identity.totalSupply*quote.executablePrice",
"dormancy": "unavailable:holder-axis-produced-no-block",
"ownership.creatorAddress": "derived:sender-of-first-transfer",
"ownership.isMintable": "derived:mint-selector-in-bytecode",
"market": "vendor:dexscreener+goplus",
"market.priceUsdSpot": "vendor:dexscreener",
"market.volume24hUsd": "vendor:dexscreener",
"market.marketCapUsd": "vendor:dexscreener",
"market.holderCount": "vendor:goplus"
}
}🔴 sources is the map of who said what. measured — ours, read off the chain on
this call. derived:<formula> — ours, computed from other fields of this same response.
vendor:<name> — somebody else's number, republished and signed as theirs.
unavailable:<reason> — no value, and the reason why. That last one is the point:
a missing number that names its own gap cannot be mistaken for a clean result.
Two numbers that look like duplicates and are not: valuation.fdvExecutableUsd is
THIS chain's supply at the price your size executes at; market.marketCapUsd is the
vendor's global figure. For a bridged token ours is legitimately smaller.
What changed in 0.2.0
A field changed MEANING, not shape. risk_profile.liquidity.exitLiquidityUsd used to be the
counter asset sitting in the direct pools. Since 2026-09-20 it is what selling the position
returns: the server quotes the sale of the very position the answer prices and reports the
proceeds of the best road (never a sum of roads).
Where the previous number lives: liquidityCoverage.exitPoolInventoryUsd — same figure as
before, under its own name. liquidityCoverage.exitPotBasis tells you which kind of number the
head figure is: position-sale (measured proceeds), second-hop (a counter-asset road) or
pool-inventory (the sale could not be quoted this call, so it fell back to the pre-20.09
meaning).
Why it matters: measured on SOGNI, 2026-09-20 — inventory $113,968 against a sale that returns
$4,571 for a $5,000 position. A client comparing the OLD pot with its own size overstated the exit
by 8.6% of that size. If your code does min(exitLiquidityUsd, size), it now gets the honest
number; if you relied on the old semantics, read exitPoolInventoryUsd instead.
Also in this release:
liquidityCoverage.exitLadderScopeandliquidityCoverage.exitReachRoadname the ROAD behind each exit number, soexitLadderStatus: "unsellable"can no longer be read as "this token cannot be sold" — it describes direct Uniswap v4 pools only, while the pot may have been measuredvia <asset>somewhere else. Measured 2026-09-22 on Base:unsellableacross 31 v4 pools while the position sold for $4,735.82 through another venue.exitPoolInventoryUsdis no longer an unconditional upper bound: when the v4 sale ladder ran, the v4 share of it is the ladder's REACH, and it never counts the second leg of a two-leg sale.Prices are measured with a real trade's gas limit, because some Uniswap v4 hooks set their fee from the gas available to the caller.
The contract strings in this package (prices, paths, thresholds, verdict vocabulary, the two notes above) are now GENERATED from the Plexa server sources, so they cannot drift from the API.
No field was removed and no response shape changed. The minor version moved because a published field's meaning did.
Notes
Client-only. Talks to the public Plexa API over HTTPS. No service internals ship in this package.
Honest failures. A non-2xx response or a network error becomes a loud tool error — never a clean-looking empty result. An agent can always tell a failure from a pass.
Built on the official
@modelcontextprotocol/sdk+ x402.
License
MIT — see LICENSE.
Questions: support@getplexa.com · getplexa.com
Informational on-chain data and heuristic economic signals, not financial advice. Absence of flags is not a guarantee of safety. Verify independently before trading.
Available Tools
2 toolsplexa_pretrade_checkPlexa pre-trade safety checkA
Economic-safety verdict for a token on Base before buying it: ok / caution / avoid with human-readable reasons and a confidence rating. Combines liquidity structure, holder concentration, token age, fee-on-transfer/honeypot fingerprints, and oracle/price sanity, plus an executable quote. Call this to screen a token for rug / honeypot / trap risk before an agent trades it. Base-only today (configure the server with CHAIN=base to use it). Cost: $0.05 USDC per call via x402 (paid automatically by the configured wallet). Heuristic economic signal, NOT financial advice; absence of flags is not a guarantee of safety.
Inputs: token (required), sizeUSD.
plexa_quotePlexa executable quoteA
Get EXECUTABLE on-chain liquidity for a swap (Base / Polygon / Arbitrum) before trading: the real fill price under a given size (not the mid/spot quote), price impact in bps, realizable depth, the route (per-leg dex/pool/fee), worst-case slippage, and a confidence rating. Sources Uniswap v3 + Aerodrome/Algebra via canonical on-chain quoters. Call this when an agent needs to know what price a swap of a specific size will ACTUALLY execute at, especially for thin/long-tail tokens. Cost: $0.02 USDC per call via x402 (paid automatically by the configured wallet). Returns informational market data, NOT financial advice.
Inputs: tokenIn (required), tokenOut (required), sizeIn, sizeUSD, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one performs a safety check on a token before buying, the other provides an executable swap quote. There is no overlap in functionality.
Both tools follow the 'plexa_' prefix and use descriptive snake_case names ('pretrade_check', 'quote'), forming a consistent and predictable naming pattern.
With only two tools, the server feels thin for a trading context. However, if the server's intended purpose is limited to pre-trade safety and pricing, the count is justifiable but borderline.
The server covers safety screening and quoting but is missing critical operations like executing a swap, managing approvals, or checking balances, leaving a significant gap in the trading workflow.
Maintenance
Related MCP Connectors
Read-only MCP server checks and quote verification, free and keyless; results signed and publicly lo
Pay-per-call Polymarket intelligence for AI agents: MCP server + x402 (USDC) API
Pay-per-call DeFi and macro intel for AI agents. x402 USDC tools via streamable HTTP /api/mcp.
Remote MCP server for agent services: research, signals, trust, safety and pricing. Free discovery.
Related MCP Servers
- AlicenseAqualityBmaintenanceEight crypto and DeFi data tools for AI agents: prices, gas, one ParaSwap route quote, GoPlus token security and top-holder samples, DefiLlama yields, Hyperliquid/dYdX funding, and observed wallet balances. Inspect prices free; pay 0.001–0.008 USDC per call on Base through x402. No API key or subscription.8110 npmMIT
- FlicenseNot gradedqualityCmaintenancePay-per-call MCP server for checking MEV exposure, sandwich attacks, and pool MEV density on EVM chains, with no signup or API key required.-
- FlicenseNot gradedqualityDmaintenanceA monetizable remote MCP server that provides prediction-market intelligence tools for AI agents, enabling discovery, evaluation, and mispricing detection across venues like Polymarket and Kalshi with per-call payment.1-
- AlicenseNot gradedqualityDmaintenanceMCP server that provides AI agents with pay-per-call access to a suite of tools (honeypot check, token market, DeFi yields, etc.) via USDC on Base using the x402 protocol.MIT