Crypto News Sentiment (x402)

v0.2.0
io.github.whatevercat-creator/crypto-sentiment-x402 Checked 1 day ago Published 23 days ago

Crypto news sentiment for 24 coins: label, score and headlines behind it, paid per call via x402

Values you need

VariableWhat it is
CDP_API_KEY_IDoptional secret Coinbase Developer Platform API key ID (portal.cdp.coinbase.com). Used to sign x402 payments from your own wallet. Only needed for the paid tools (get_sentiment, get_sentiment_history, get_movers); the free tools work without it.
CDP_API_KEY_SECREToptional secret Coinbase Developer Platform API key secret, paired with CDP_API_KEY_ID. Only needed for the paid tools (get_sentiment, get_sentiment_history, get_movers); the free tools work without it.
CDP_WALLET_NAMEoptional Name of the CDP wallet to create/reuse for payments. Defaults to "crypto-sentiment-mcp-wallet". Must hold USDC (+ a little ETH for gas) on the configured network.
SENTIMENT_API_URLoptional Base URL of the deployed sentiment API. Defaults to https://crypto-sentiment-x402.onrender.com.
X402_NETWORKoptional "mainnet" (default, real USDC on Base) or "testnet" (free Base Sepolia USDC).
SENTIMENT_PAY_TOoptional payTo address the paid tools expect in the 402; anything else is refused before signing. Defaults to the hosted API's wallet. Set it when SENTIMENT_API_URL points at your own deployment.
MAX_SPEND_USD_PER_SESSIONoptional Most this server signs for in total per run, in USD. Default 0.50; 0 turns the cap off. A paid call that would go over it is refused and not charged. Resets when the server restarts.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add crypto-sentiment-x402 -- uvx crypto-sentiment-x402-mcp==0.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "crypto-sentiment-x402": {
      "args": [
        "crypto-sentiment-x402-mcp==0.2.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "crypto-sentiment-x402": {
      "args": [
        "crypto-sentiment-x402-mcp==0.2.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "crypto-sentiment-x402": {
      "args": [
        "crypto-sentiment-x402-mcp==0.2.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.crypto-sentiment-x402]
command = "uvx"
args = ["crypto-sentiment-x402-mcp==0.2.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: get_sentiment, get_sentiment_history, get_movers, list_supported_coins, get_archive_coverage, get_market_sentiment, get_call_price.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json