Crypto News Sentiment (x402)
Use this MCP server to query crypto news sentiment, with free discovery/coverage/market tools and paid per-call sentiment/history/movers data settled in USDC on Base via x402.
Get current sentiment for one of 24 coins: bullish/bearish/neutral label, score, sample sizes, Fear & Greed, and top headlines ($0.01/call).
Get hourly sentiment history for one coin over a time range: default last 7 days, max 30 days ($0.05/call).
Get the biggest 24h sentiment movers across supported coins, with up and down rankings ($0.02/call).
List the 24 supported coin tickers and names for free.
Check hourly archive coverage per symbol for free before requesting history.
Get a market-wide crypto news sentiment index for free, refreshed at most hourly.
Get the live x402 price/payment requirements for a
get_sentimentcall for free.Free tools need no wallet; paid tools use the server's CDP wallet, respect a session spend cap, and refused calls are not charged.
Integrates with Coinbase Developer Platform for x402 payment verification and settlement, and uses CDP-managed wallets to pay per call in USDC on Base, enabling mainnet payments and discovery in the x402 Bazaar.
Delivers sentiment-shift alerts to Discord, notifying users when a watched symbol's sentiment moves.
Integrates with RapidAPI Hub to distribute the sentiment API through RapidAPI's marketplace, with plans mirroring Stripe tiers and traffic validated via RapidAPI's proxy.
Ingests crypto news from RSS feeds across 9 major outlets as a data source for sentiment analysis.
Provides Stripe-backed subscription tiers (Free, Starter, Pro) for accessing the sentiment API via X-API-Key, offering an alternative to pay-per-call crypto payments.
Delivers sentiment-shift alerts to Telegram, notifying users when a watched symbol's sentiment moves.
Integrates with TradingView to enrich TradingView price alerts with live crypto sentiment before relaying them to webhook, Discord, or Telegram.
Integrates with Zapier by routing sentiment-shift alerts through the existing webhook channel, allowing users to trigger Zapier workflows based on sentiment changes.
Crypto Sentiment API (x402)
News-based crypto sentiment for AI agents and trading bots, paid per call in USDC on Base over x402. No account or API key: call the endpoint, get an HTTP 402 with the price, pay, and get JSON.
Live at https://crypto-sentiment-x402.onrender.com · API docs · llms.txt
Terms of use (plans, x402 charges, refunds, cancellation): /terms.
What you get
Endpoint | Price | Returns |
| $0.01 per call | A bullish / bearish / neutral label, a score from -1 to 1, the sample size, and the up to 5 headlines that moved the score most (title, source, link). |
| $0.05 per call | Hourly readings recorded live at the top of every UTC hour (never backfilled): score, sample size, Fear & Greed value and the top 3 headlines per hour. Default the last 7 days, up to 30 days per call. |
| free | Which symbols the hourly archive holds, from when, and how complete it is. |
The 402 response is the source of truth for the current price.
24 coins: BTC, ETH, SOL, XRP, DOGE, ADA, AVAX, LINK, MATIC, DOT, SHIB, LTC, BNB, USDC, USDT, NEAR, HYPE, QNT, AAVE, TAO, PEPE, PUMP, ENA, STRK.
Refused calls are never charged. The payment only settles when you get a reading:
404: a symbol that isn't one of the 24 coins (a stock ticker, say).422: too little recent news about that coin for a reliable reading./historyalso refuses (4xx, not charged) an invalid range, a range with no readings, and a range in which every hour had zero matching headlines.
Prefer a monthly bill? The same readings are on GET /v1/sentiment/{symbol}
with an X-API-Key header (plans,
including a free tier). There's also an MCP server:
pip install crypto-sentiment-x402-mcp (see MCP.md).
Related MCP server: Web3 Signals — Crypto Signal Intelligence
How it's scored
Sources (all free, no keys required):
Crypto news RSS (9 outlets): CoinDesk, Cointelegraph, Decrypt, Bitcoin Magazine, The Block, CryptoSlate, NewsBTC, CryptoPotato, The Defiant (DL News was removed on 2026-10-04: its feed served only April-May 2026 items)
Fear & Greed Index: alternative.me
Scoring: VADER sentiment analysis, extended with a crypto slang lexicon
(moon, rekt, rug, hodl, bullish/bearish, etc.) so slang isn't scored as neutral.
Each headline is matched and scored on its title plus its feed description with
HTML tags, entities, feed footers and the outlet's own name removed
(clean_text in app/sources/news.py; method 72h-hl24-v2 from 2026-10-21).
Only headlines published in the last 72 hours count, and each headline's
weight halves for every 24 hours of age (app/window.py). When the effective
sample size is below 5, the label is insufficient recent news and the paid
endpoints refuse with a 422 instead of charging. Whether the score leads or
lags price is published at /validation, whatever it shows.
News sentiment only: not a price prediction or financial advice.
Running your own copy
1. Get a Base wallet address
You need an address to receive USDC payments. Any standard Ethereum-style wallet works on Base (e.g. Coinbase Wallet, MetaMask configured for Base). You do not need to give this app your private key — only the public address, to receive funds.
2. Run it locally (testnet — free, no real money)
cd crypto-sentiment-x402
cp .env.example .env
# edit .env and set PAY_TO_ADDRESS to your wallet address
pip install -r requirements.txt
uvicorn app.main:app --reloadVisit http://localhost:8000 — you'll see the API description.
Calling http://localhost:8000/sentiment/BTC without payment returns an
HTTP 402 with payment instructions, exactly what an agent's x402 client
would see and act on automatically.
To actually test a paid call, use the official x402 test client (needs Base Sepolia testnet USDC — free from the Base Sepolia faucet):
pip install x402
python -m x402.examples.client --url http://localhost:8000/sentiment/BTC3. Deploy (simplest path: Render.com)
Push this folder to a new GitHub repo.
Go to render.com → New → Blueprint → connect the repo. Render will read
render.yamlautomatically.When prompted, set the
PAY_TO_ADDRESSenvironment variable to your wallet address.Deploy. Render builds the
Dockerfileand gives you a public HTTPS URL likehttps://crypto-sentiment-x402.onrender.com.
That's it — testnet mode is on by default, so nothing costs real money
until you flip X402_NETWORK to mainnet (step 4 below).
4. Go live with real USDC payments
Sign up for a free Coinbase Developer Platform account and create an API key — this is required for the mainnet facilitator (production-grade payment verification/settlement).
In Render, set:
X402_NETWORK=mainnetCDP_API_KEY_ID=...CDP_API_KEY_SECRET=...PAY_TO_ADDRESS= your mainnet Base address (double-check it's not a testnet-only address)
Redeploy. Calls now settle real USDC on Base mainnet.
Start with a low price (X402_PRICE_USD, default $0.01) while you
validate everything works end-to-end.
5. List it so AI agents can find and pay you
This is the x402 Bazaar — Coinbase's discovery layer, essentially a search engine for agents looking for x402 services.
If you're using the CDP facilitator (i.e. you're on mainnet per step 4), your service becomes automatically discoverable in the Bazaar once you process your first real payment through it — no separate signup.
To improve how well agents can find and understand it, keep the
descriptionfield inapp/main.py'sRouteConfigclear and specific (already set) — that text is what shows up in Bazaar search results.You can browse the current Bazaar listing yourself at
https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources(public, no key needed) to confirm your service appears after going live.Optional extra distribution: submit your API to x402bazaar.org, a community-run directory of x402 services, separate from Coinbase's own Bazaar.
MCP server (Claude Desktop / Claude Code)
Prefer agents calling this over MCP instead of raw HTTP? mcp_server.py
wraps the same API as 7 MCP tools (paid: get_sentiment,
get_sentiment_history, get_movers; free: list_supported_coins,
get_market_sentiment, get_archive_coverage, get_call_price) -- the server pays
for each call from its own CDP-managed wallet, so callers never touch
crypto directly. See MCP.md for setup.
Try it free
Four tools need no wallet, no CDP key and pay nothing. The server starts without any CDP variables, so you can install it and try these first:
list_supported_coins— the 24 supported ticker symbols and names.get_market_sentiment— one market-wide sentiment index across all 24 coins (GET /market-sentiment), refreshed at most hourly.get_archive_coverage— what the hourly archive holds (GET /archive): first reading, row counts and missing hours per symbol.get_call_price(symbol)— makes one unpaid request and reads the 402 payment requirements: price, network, asset and thepayToaddress.
Three tools are paid, from your own CDP wallet in USDC on Base:
get_sentiment(symbol)— the current reading, $0.01 per call. Unsupported coins and coins with too little recent news are refused and not charged.get_sentiment_history(symbol, start, end)— past hourly readings (GET /history/{symbol}), $0.05 per call. Recorded live and never backfilled;start/endare ISO 8601, default the last 7 days, at most 30 days per call. The symbol has to be oneget_archive_coveragelists as logged. Unlogged symbols, invalid ranges and ranges with no readings are refused and not charged.get_movers(limit)— the coins whose sentiment rose or fell most over the last ~24 hours (GET /movers), $0.02 per call.limit(1 to 24, default 10) caps each list. Coins without enough news are left out; a call that can rank no coin is refused and not charged.
Spend cap: the server signs for at most $0.50 in total per run by
default. A paid call that would go over it is refused and not charged. Set
MAX_SPEND_USD_PER_SESSION to change it (0 turns the cap off); the count
resets when the server restarts.
Renamed in 0.2.0: crypto_sentiment → get_sentiment,
get_hourly_history → get_sentiment_history, archive_coverage →
get_archive_coverage, price_quote → get_call_price. The old names are
gone; see CHANGELOG.md.
Wallet setup is in MCP.md.
Subscription tiers (Stripe, no crypto required)
Prefer a monthly bill over pay-per-call USDC? GET /v1/sentiment/{symbol}
takes an X-API-Key header instead of an x402 payment, backed by Free /
Starter ($15/mo) / Pro ($59/mo) tiers. See BILLING.md for
setup, or GET /billing/pricing on a running instance for current pricing.
Sentiment-shift alerts
Watch a symbol and get pinged (webhook / Discord / Telegram) when its
sentiment moves, instead of polling /sentiment yourself. Bundled into the
Starter/Pro subscription tiers -- see ALERTS.md.
Historical dataset export
Sells access to the history of sentiment readings, not just the current
one -- a background job takes one snapshot per symbol per day, and
subscribers on the Pro or "Data Access" tier can export everything
collected so far as CSV or JSON via GET /dataset/export. See DATASET.md
(there's no backfilled history -- it only has data from whenever you turn
the snapshot loop on).
Also on RapidAPI
Listed on the RapidAPI Hub
for developers who'd rather discover and pay for it through RapidAPI's
marketplace instead of Stripe or x402 directly. Same underlying data,
served from GET /rapidapi/sentiment/{symbol} -- traffic is only accepted
when it's routed through RapidAPI's proxy (validated via a shared secret
header), so this endpoint isn't meant to be called directly. Plans there
mirror the Stripe tiers: Free (100 req/mo), $15/mo (3,000 req), $59/mo
(15,000 req).
Zapier & TradingView integrations
Route sentiment-shift alerts into Zapier (via the existing webhook channel -- no new endpoint needed) or enrich TradingView price alerts with live sentiment before relaying them to your webhook/Discord/ Telegram. See INTEGRATIONS.md.
TradingView alerts post to POST /integrations/tradingview with your API
key in the JSON alert message ("api_key"), never in the URL. The older
/integrations/tradingview/<your-api-key> URL still works but is
deprecated, and will be removed after 60 days without use.
API reference
Endpoint | Price | Description |
| Free | Service info |
| Free | Health check |
| $0.01 (configurable) | Aggregate sentiment for a symbol, e.g. |
Example paid response:
{
"symbol": "BTC",
"name": "Bitcoin",
"overall_sentiment": {
"sample_size": 42,
"average_compound": 0.21,
"label": "bullish",
"positive_pct": 55.0,
"negative_pct": 15.0,
"neutral_pct": 30.0,
"unweighted_compound_72h": 0.17,
"effective_sample_size": 31.4,
"newest_headline_age_hours": 1.6,
"window": "72h-hl24-v2"
},
"drivers": [{ "title": "...", "source": "CoinDesk", "link": "https://...", "published": "...", "score": 0.62, "weight": 0.93, "effect": 0.03 }],
"drivers_summary": "3 of the top 5 headlines are positive, 2 are negative.",
"breakdown": {
"news": { "...": "..." },
"fear_greed_index": { "value": 62, "classification": "Greed" }
},
"sources": ["coindesk.com RSS", "..."]
}Notes and limitations
Reddit was removed as a source: Reddit's Responsible Builder Policy prohibits commercial use of their data without written approval, which this paid API would violate.
app/sources/reddit.pyis left in the repo unused in case that changes in the future.Coin coverage:
app/coins.pyhas a starter list of ~15 symbols. Add more as needed — unmapped symbols still work, just with slightly less accurate news matching (falls back to matching on the symbol itself).Only supports the
exactpayment scheme on Base/EVM. The x402 SDK also supports Solana (ExactSvmServerScheme) if you want to accept SOL-based USDC too — see the commented-out import inapp/main.py's dependencies.Add more paid endpoints (e.g. historical sentiment, multi-symbol batch queries) by adding entries to the
routesdict inapp/main.py.
Available Tools
7 toolsget_archive_coverageSentiment Archive Coverage (free)ARead-onlyIdempotent
Free: what the hourly sentiment archive holds (GET /archive). No wallet
needed.
Per symbol: first and latest reading, row counts, missing hours, and
coverage_7d_pct, the share of the last 7 days' logged hours that had at
least one matching headline (with hours_with_headlines_7d and
hours_logged_7d). Check it before get_sentiment_history to pick a symbol
and range with data: low-coverage coins often get no_headlines_in_range
from get_sentiment_history or "insufficient recent news" from
get_sentiment, both refused and not charged.
Inputs: no named parameters. Returns: object
get_call_priceLive x402 Price of a Sentiment Call (free)ARead-onlyIdempotent
Free: the live x402 price of one get_sentiment call, read from an
unpaid request's 402 response. Nothing is signed; no wallet needed.
When not to use it: prices are fixed at $0.01 per get_sentiment call,
$0.05 per get_sentiment_history call and $0.02 per get_movers call, so
there's no need to call this before every paid call. Use it to confirm
the live price and payment requirements, e.g. before funding a wallet.
It quotes get_sentiment only.
symbol must be exactly one of the 24 uppercase tickers from
list_supported_coins; lowercase or any other symbol is rejected by the
input schema before a request is sent. A low-coverage coin still gets a
quote; a get_sentiment call for it may then be refused with
"insufficient recent news" (not charged).
Inputs: symbol (required). Returns: object
get_market_sentimentCrypto Market Sentiment Index (free)ARead-onlyIdempotent
Crypto market sentiment index: one news-sentiment score and
bullish/bearish/neutral label for the whole crypto market, aggregated
from the 24 supported coins and weighted by how much recent news each
has, with the contributing coins listed. Free: no wallet needed.
Use when an agent needs the overall crypto news mood rather than one
coin's; use get_sentiment for a single coin and get_movers for which
coins are shifting. Refreshed at most hourly: cached, computed_at and
next_refresh_at in the response say how fresh it is, and a call before
next_refresh_at returns the same index.
Inputs: no named parameters. Returns: object
get_moversBiggest 24h Crypto Sentiment Movers (paid)A
Crypto sentiment movers: the coins whose news sentiment rose or fell the
most over the last ~24 hours, ranked across all 24 supported coins in one
call. Paid: $0.02 in USDC on Base per call, from this MCP server's own
CDP wallet.
Use when an agent wants to know which coins' news mood is shifting
without calling get_sentiment for every coin. Compares each coin's
current reading (refreshed at most hourly; computed_at says when) with
its archived reading closest to 24 hours earlier. Returns movers_up
(rises, largest first) and movers_down (falls, largest first) with each
coin's current score, previous score and delta.
limit is sent as the ?limit= query parameter and caps movers_up and
movers_down each; omit it for 10. Coins without enough recent news, now
or ~24 hours ago, are left out. A call that can rank no coin is refused
with HTTP 422, returned as an error with charged: false. Without CDP
keys or past the session spend cap, it pays nothing and says why.
Inputs: limit. Returns: object
get_sentimentCurrent Crypto News Sentiment (paid)A
Crypto news sentiment for one coin right now: a bullish/bearish/neutral
label, a score from -1 to 1, sample sizes, the Fear & Greed value and up
to 5 headlines that moved the score. Paid: $0.01 in USDC on Base per
call, from this MCP server's own CDP wallet.
Use when an agent needs the current news mood for a crypto ticker.
Scores headlines from the last 72 hours across 9 crypto news RSS outlets,
newest weighted most. Each call fetches and scores the feeds live (no
cache), so repeat calls can differ as news arrives. For past readings
use get_sentiment_history; for the coins shifting most use get_movers.
symbol picks the coin and goes into the request path: one of the 24
uppercase tickers from list_supported_coins. Any other symbol is
rejected by the input schema, so nothing is charged. Too few recent
headlines: HTTP 422 "insufficient recent news", returned with charged:
false (get_archive_coverage shows coverage_7d_pct). Without CDP keys or
past the session spend cap, it pays nothing and says why.
Inputs: symbol (required). Returns: object
get_sentiment_historyHourly Crypto Sentiment History (paid)A
Historical crypto news sentiment for one coin: hourly readings (score,
sample size, Fear & Greed and the top headlines for each hour), oldest
first. Paid: $0.05 in USDC on Base per call, from this MCP server's own
CDP wallet.
Use when an agent needs how a coin's news sentiment moved over past hours
or days, e.g. to line it up with price. For the current reading use
get_sentiment.
symbol goes into the request path (/history/{symbol}) and start/end are
sent as query parameters, so together they pick one coin and one time
range. Omit both for the 7 days up to now; with only end the range starts
7 days before it, with only start it runs to now. A reading is included
when start <= observed_at < end; at most 30 days per call. Readings are
recorded live at the top of each UTC hour and never backfilled.
Refused and not charged (an error with charged: false): 400 for a
malformed symbol or time, start not before end, or over 30 days; 404 for
a symbol not in the archive, no_readings_in_range (gives first_reading)
or no_headlines_in_range (no hour had headlines). For low-coverage coins,
check get_archive_coverage first. Without CDP keys or past the session
spend cap, it pays nothing and says why.
Inputs: symbol (required), end, start. Returns: object
list_supported_coinsList Supported Crypto Coins (free)ARead-onlyIdempotent
The 24 crypto tickers (symbol and name) that get_sentiment and
get_call_price accept. Free: no wallet needed and no network call.
Use when choosing a symbol before calling get_sentiment or
get_call_price. The coin list is fixed per release: new coins come with a
new version of this package, never while the server runs. Any other
symbol is rejected by those tools' input schema before a request is
sent, so nothing is charged.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct scope+action: market-wide index, single-coin current score, single-coin history, 24h movers, static coin list, archive coverage metadata, and price quote. Descriptions explicitly route between the easily confused pairs (get_sentiment vs get_market_sentiment vs get_sentiment_history vs get_archive_coverage) with 'use when' guidance.
Every tool uses a verb_noun pattern with snake_case, dominated by get_* (get_sentiment, get_sentiment_history, get_movers, get_archive_coverage, get_call_price, get_market_sentiment) plus the appropriate list_supported_coins. No style mixing.
Seven tools for a focused sentiment API: current, aggregate, historical, movers, plus three supporting lookup/free tools. Each earns its place with no filler.
Covers current/live sentiment, market aggregate, historical archive, movers, symbol discovery, archive coverage and payment quoting — a closed loop for the stated domain. Minor gaps: no bulk multi-symbol sentiment call (must pay per coin or use movers), and get_call_price quotes only get_sentiment, not history or movers.
Maintenance
Related MCP Connectors
Crypto market tools for agents. Free prices and Fear & Greed; paid tools in USDC on Base via x402.
Live BTC/ETH/SOL quotes, Fear-Greed index and BTC mempool stats via x402 micropayments on Base.
Crypto market intelligence for AI agents: sentiment, flow, Oracle readings. x402. NFA.
Live BTC/ETH/SOL quotes and Fear-Greed index over x402 micropayments on Base.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that provides real-time CNN Fear & Greed Index data for the US stock market, including current sentiment scores and historical comparisons.14MIT
- AlicenseNot gradedqualityDmaintenanceAI-powered crypto signal intelligence for 20 assets (BTC, ETH, SOL, etc). 6 scoring dimensions: whale activity, technical analysis, derivatives flow, narrative strength, sentiment, market structure. Market regime detection (TRENDING/RANGING), portfolio optimization, and accuracy tracking. 9 read-only MCP tools. Free via MCP, $0.001 USDC via x402 on Base for REST API.3MIT
- AlicenseAqualityAmaintenanceBuyer-side trust layer for agents that pay x402 APIs. verified_route vets providers on paid-delivery evidence before the agent pays, sessions enforce a hard spend cap with receipts, and 17 crypto and market-data tools are free with no keys. Remote at https://agentpay.tools/mcp or npx @romudille/agentpay-mcp.204MIT
- AlicenseNot gradedqualityDmaintenanceReal-time crypto news aggregation with sentiment scores and token mentions, enabling market analysis and trading signals via pay-per-call micropayments.MIT