Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Bitget API to fetch cryptocurrency price.

README.md

Coin MCP Server 🚀💰

Welcome to the Coin MCP Server – your one-stop shop for snagging the latest cryptocurrency prices faster than you can say "To the moon!" 🌙 Built with FastMCP and spiced up with zod for validation, this little server is here to fetch token prices from Bitget’s API like a trusty crypto butler. 🧑‍💼

中文文档 | English

---

What Does It Do? 🤔

This project spins up a server that lets you query the current price of any cryptocurrency (paired with USDT) using Bitget’s slick API. Want to know how much your favorite token is worth right now? Just ask, and boom – the price is yours! 💸

  • Tool: getTokenPrice
  • Mission: Fetch the latest price of a token (e.g., BGB, BTC, ETH).
  • Superpower: It’s fast, it’s simple, and it’s powered by FastMCP! ⚡
  • Tool: getAnnoucements
  • Mission: get annoucements
  • Tool: getCoinInfo
  • Mission: Get detailed information about a specified token.
  • Superpower: Provides detailed information such as token transferability, supported chain list, chain network status, etc.

---

Features 🌟

  • 🎯 Dead-Simple API: Pass a token symbol, get a price. No fuss, no muss.
  • 🛡️ Zod Validation: Parameters are checked tighter than a vault door.
  • 📡 Bitget Integration: Pulls live data straight from Bitget’s market ticker API.
  • 🧠 Error Handling: Catches hiccups like a pro and logs them for you to giggle at later.

---

Getting Started 🏁

Ready to dive into the crypto price pool? Here’s how to get this baby running:

Prerequisites

  • Deno: You’ll need Deno installed because we’re fancy and modern. Grab it here.
  • Bitget API Access: No API key needed – we’re hitting the public endpoint like champs! But if you’ve got a custom BGURL, set it as an environment variable.

Installation

  1. Clone this repo like it’s hot:
   git clone https://github.com/pwh-pwh/coin-mcp-server.git
   cd coin-mcp-server
  1. Install dependencies (Deno handles this automagically via imports!).

Running the Server

Fire it up with: ``bash deno run --allow-net --allow-env --allow-read main.ts ``

or ``bash deno run --allow-net --allow-env --allow-read https://deno.land/x/coin_mcp_server/main.ts ``

  • --allow-net: Lets us talk to Bitget’s API.
  • --allow-env: Grabs your BGURL env variable if you’ve set one.

The server will start in stdio mode, ready to serve up prices like a crypto vending machine! 🍔

  1. Support installation-free, directly deploy to deno, fork this project, log in dash.deno.com, set the environment variable StartType=sse to use the domain name provided by deno to connect in sse mode

---

Configuration

config.json ``json { "mcpServers": { "coin-mcp": { "command": "deno", "args": [ "run", "--allow-net", "--allow-read", "--allow-env", "https://deno.land/x/coin_mcp_server/main.ts" ] } } } ``

Usage Example 🎮

Here’s how you’d call getTokenPrice: ``json { "tool": "getTokenPrice", "parameters": { "token": "BGB" } } ``

Response: `` "42.069" // The latest BGB/USDT price (not a real price, just vibes!) ``

If the token doesn’t exist or the API hiccups, it’ll throw an error with a cheeky log to remind you it tried its best. 😅

---

Code Sneak Peek 👀

Here’s the magic behind the curtain:

  • FastMCP: Spins up the server with a cool name and version.
  • Zod: Keeps your token parameter in check.
  • Bitget API: Fetches ticker data from https://api.bitget.com/api/v2/spot/market/tickers.

The getBitgetPrice function is the MVP, grabbing that sweet lastPr (last price) from the response. Check the logs for price updates or error comedy gold! 😂

---

Environment Variables 🌍

  • BGURL: Custom Bitget API base URL (defaults to https://api.bitget.com if not set). Set it like:
  export BGURL="https://your-custom-bitget-url.com"

---

Troubleshooting 🛠️

  • “HTTP error! status: 404”: Double-check your token symbol. BGBUSDT isn’t the same as BGB!
  • “Network error”: Make sure you’ve got internet and Deno’s --allow-net flag.
  • Still stuck?: Yell into the void (or open an issue). We’ll figure it out together! 🙌

---

Why This Exists 🎉

Because who doesn’t want to know the price of their crypto stash in real-time? Whether you’re a trader, a HODLer, or just crypto-curious, this server’s got your back. Plus, it’s a fun way to flex some Deno skills and play with APIs. 😎

---

Contributing 🤝

Got ideas? Found a bug? Want to add a feature like moon phase price predictions? Fork it, tweak it, PR it! Let’s make this the coolest MCP server in the galaxy. 🌌

---

License 📜

MIT – Do whatever you want with it, just don’t blame me if your token moons or dumps! 🌑📉

---

Happy crypto hunting, and may your bags always be green! 💚

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Browser & Scraping servers.