Purpose: This is an MCP (Model Context Protocol) server used to let MCP-compatible clients query cryptocurrency information, with data from Bitget's public API.
Main capabilities: Provides three tools. getTokenPrice retrieves the latest price of a specified token (paired with USDT), such as BGB, BTC, ETH; getAnnoucements retrieves announcements; getCoinInfo retrieves detailed information about a specified token, such as whether it can be transferred, the list of supported chains, chain network status, etc. Parameters are validated using zod, with error handling and logging.
Usage: Deno must be installed first. Clone the repository: git clone https://github.com/pwh-pwh/coin-mcp-server.git,然后 cd coin-mcp-server. Dependencies are handled automatically by Deno through imports. Starting the server requires allowing network and environment variable permissions (--allow-net, --allow-env), and the server runs in stdio mode. It can also be deployed directly to Deno without installation: fork the project, log in to dash.deno.com, set the environment variable StartType=sse, and then connect in SSE mode using the domain provided by Deno.
Environment variables: BGURL can customize the Bitget API base address, default https://api.bitget.com,例如 export BGURL="https://your-custom-bitget-url.com"。使用公共端点,无需 API key.
Limitations and troubleshooting: Token symbols must be accurate; BGBUSDT and BGB are different, otherwise it may return HTTP 404; when network errors occur, check the network and --allow-net permissions. The project uses the MIT license.