Crypto News & Market MCP Server
Fetches latest crypto news from CoinDesk, Cointelegraph, Decrypt, and Bitcoin Magazine via RSS feeds.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
🪙 Crypto News & Market MCP Server
MCP Server (Python) สำหรับดึงข้อมูล Crypto จากแหล่ง ฟรีทั้งหมด ออกแบบมาให้ deploy เป็น MCP Online บน Railway แล้วเชื่อมเข้ากับ Claude ได้ทันที
✨ Tools ที่มีให้ใช้งาน
Tool | หน้าที่ | แหล่งข้อมูล | ต้องใช้ key? |
| ราคา / market cap / %เปลี่ยนแปลง 24h | CoinGecko | ❌ |
| ภาพรวมตลาด + Top N เหรียญ + BTC dominance | CoinGecko | ❌ |
| เหรียญกระแสแรงใน 24h | CoinGecko | ❌ |
| ดัชนีความกลัว/โลภ | Alternative.me | ❌ |
| ข่าวล่าสุดจาก CoinDesk/Cointelegraph/Decrypt/Bitcoin Magazine | RSS | ❌ |
| ค้นหา CoinGecko id จากชื่อ/symbol | CoinGecko | ❌ |
| ข่าว + sentiment (votes) | CryptoPanic | ✅ (optional) |
6 ใน 7 tool ทำงานได้ทันทีโดย ไม่ต้องมี API key เลย
Related MCP server: market-data-mcp
📁 โครงสร้างไฟล์
News CRYPTO API/
├── server.py # ตัว MCP server (FastMCP + Streamable HTTP)
├── oauth_provider.py # OAuth 2.1 provider + หน้า login (สำหรับ Claude.ai/Cowork web)
├── requirements.txt # dependencies
├── railway.json # config สำหรับ Railway
├── Procfile # start command สำรอง
├── .python-version # ระบุ Python 3.12 ให้ Nixpacks
├── .env.example # ตัวอย่างตัวแปร env (ทุกตัว optional)
└── .gitignore🧪 1) ทดสอบบนเครื่อง (Local)
# สร้าง virtual env
python -m venv .venv
.venv\Scripts\activate # Windows
# source .venv/bin/activate # macOS/Linux
pip install -r requirements.txt
python server.pyServer จะรันที่ http://localhost:8000/mcp
ทดสอบด้วย MCP Inspector:
npx @modelcontextprotocol/inspector
# ใส่ URL: http://localhost:8000/mcp | Transport: Streamable HTTP🚂 2) Deploy ขึ้น Railway
วิธีที่แนะนำ: ผ่าน GitHub
push โค้ดทั้งหมดนี้ขึ้น GitHub repo
ไปที่ railway.app → New Project → Deploy from GitHub repo
เลือก repo นี้ → Railway จะอ่าน
railway.json+requirements.txtแล้ว build อัตโนมัติไปที่ tab Settings → Networking → Generate Domain เพื่อเปิด public URL
(ถ้าจะใช้ CryptoPanic) ไปที่ tab Variables เพิ่ม
CRYPTOPANIC_TOKEN
Railway จะ inject ตัวแปร
PORTให้เอง — โค้ดอ่านค่านี้อยู่แล้ว ไม่ต้องตั้งเพิ่ม
วิธีผ่าน CLI
npm i -g @railway/cli
railway login
railway init
railway up
railway domain # เปิด public URLหลัง deploy จะได้ URL ประมาณ:
https://your-app.up.railway.app/mcp🔌 3) เชื่อมต่อกับ Claude
Claude Code (CLI)
# ไม่ได้ล็อก token
claude mcp add --transport http crypto-news https://your-app.up.railway.app/mcp
# ถ้าล็อกด้วย MCP_BEARER_TOKEN ให้ส่ง header ไปด้วย
claude mcp add --transport http crypto-news https://your-app.up.railway.app/mcp \
--header "Authorization: Bearer <YOUR_TOKEN>"Claude.ai / Cowork (Web) — ผ่าน OAuth 2.1
หน้า web รองรับเฉพาะ OAuth (ไม่รองรับ static token) — ต้องตั้งค่า OAUTH_LOGIN_PASSWORD ก่อน
Settings → Connectors → Add custom connector
ใส่ URL:
https://your-app.up.railway.app/mcp(ไม่ต้องกรอก Client ID/Secret)กด connect → ระบบจะเปิดหน้า login ของ server → กรอก
OAUTH_LOGIN_PASSWORDกด "อนุญาต & เชื่อมต่อ" → Claude จะได้รับ token อัตโนมัติ แล้วใช้งานได้เลย เช่น:
"ราคา BTC, ETH, SOL ตอนนี้เท่าไหร่ (อ้างอิง THB)"
"ภาพรวมตลาด crypto วันนี้เป็นยังไง"
"ดัชนี Fear & Greed ตอนนี้"
"ข่าว crypto ล่าสุด 5 ข่าว"
วิธีนี้เป็น OAuth 2.1 เต็มรูปแบบ (Dynamic Client Registration + PKCE) ที่ MCP SDK จัดการให้ การล็อกที่แท้จริงอยู่ที่หน้า login — ใครไม่รู้ password ก็เชื่อมต่อไม่ได้
🔑 ตัวแปร Environment (ทุกตัว optional)
ตัวแปร | ใช้ทำอะไร | ไม่ใส่จะเป็นยังไง |
| เปิด OAuth 2.1 (สำหรับ Claude.ai/Cowork web) — รหัสที่กรอกหน้า login | ไม่เปิด OAuth |
| base URL สาธารณะ (OAuth issuer) | บน Railway อ่านจาก |
| ล็อกแบบ Bearer (เหมาะกับ CLI) — ทำงานคู่กับ OAuth ได้ | ไม่เปิด bearer |
| เพิ่ม rate limit CoinGecko | ใช้ได้ปกติ แต่ rate limit ต่ำกว่า |
| เปิด tool | tool นี้จะแจ้งให้ไปสมัคร (tool อื่นใช้ได้หมด) |
| พอร์ตที่รัน | Railway ตั้งให้เอง / local = 8000 |
เลือกโหมด auth อัตโนมัติ: ตั้ง
OAUTH_LOGIN_PASSWORD→ OAuth · ตั้งแค่MCP_BEARER_TOKEN→ Bearer · ไม่ตั้งอะไร → Open ตั้งทั้งคู่ได้: web ใช้ OAuth, CLI ใช้ static token เดิม (ทำงานพร้อมกัน)
⚠️ หมายเหตุ
ความปลอดภัย: ใช้บน web → ตั้ง
OAUTH_LOGIN_PASSWORD(OAuth 2.1, กั้นด้วยหน้า login) · ใช้บน CLI → ตั้งMCP_BEARER_TOKEN· request ที่ไม่มี/ผิด credential จะได้ HTTP 401 ถ้าไม่ตั้งอะไรเลย server จะเปิดให้ใครก็เรียกได้ (ข้อมูล read-only สาธารณะ เสี่ยงต่ำ แต่ควรล็อกไว้)OAuth state เป็น in-memory: เมื่อ Railway redeploy/restart token จะหาย ต้อง authorize ใหม่บน web (ยอมรับได้สำหรับ connector ส่วนตัว)
Rate limit: CoinGecko free มีโควต้าจำกัด ถ้าเจอ error 429 ให้เว้นช่วงแล้วลองใหม่ หรือใส่
COINGECKO_DEMO_KEYข้อมูลทั้งหมดเพื่อการศึกษาเท่านั้น ไม่ใช่คำชี้ชวนในการลงทุน
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Crypto market signals and portfolio telemetry. 6 tools pay-per-call in USDC, no API key.
Real-time curated crypto news for AI agents with sentiment, recaps, and search.
Crypto news, perps, market pulse, price history and token checks for AI agents. USDC per call.
Live and historical cryptocurrency prices via CoinGecko free API.
Related MCP Servers
- AlicenseAqualityDmaintenanceLive market data for AI agents. 8 tools: real-time crypto prices, OHLCV candles, order books, market cap rankings, trending coins, technical analysis (RSI/SMA/z-score), asset comparison, and Fear & Greed index. Zero API keys, zero dependencies.281MIT
- AlicenseNot gradedqualityDmaintenanceIntegrates cryptocurrency market data from CoinGecko, the Fear & Greed Index, and CryptoPanic news into a single toolset for AI agents. It enables users to retrieve global market statistics, trending assets, coin-specific details, and real-time news feeds.MIT
- AlicenseAqualityCmaintenanceProvides crypto market intelligence including price quotes, momentum analysis, trending coins, and a composite scored verdict, using the free CoinGecko API.437 PyPIMIT
- FlicenseCqualityDmaintenanceProvides cryptocurrency news, prices, sentiment analysis, and market data through the Crypto News51 API.13-