mcpserver-coingecko
0
The MCPServer with CoinGecko Wrapper is a system designed to handle Model Context Protocol requests, specifically integrating cryptocurrency data from CoinGecko. It operates by utilizing a PHP-based MCPServer to interact with agents and a Node.js wrapper to fetch cryptocurrency information.
MCPServer + CoinGecko Wrapper
This repository contains two key components for working with Model Context Protocol (MCP):
1. MCPServer (PHP)
- Main server that receives and responds to MCP requests from compatible agents.
- Features include receiving MCP requests, redirecting internally based on
tool_choice
, calling the relevant tool, and returning a structured MCP response.
2. MCP-CoinGecko Wrapper (Node.js + TypeScript)
- An external tool exposing cryptocurrency data using CoinGecko's public API.
- Features include exposing an MCP-compatible HTTP endpoint and fetching data such as current prices, general information, and price history.
How It Works
- An agent makes an MCP query.
webhook.php
in the MCPServer decides which tool to use.- Calls the CoinGecko wrapper if related to cryptocurrencies.
- Fetches response from CoinGecko and returns it in MCP format.
Requirements
- PHP 8+ with
curl
support (for MCPServer). - Node.js 18+ (for the wrapper).
- An agent instance compatible with MCP.
Quick Installation
Navigate to the mcp-coingecko-wrapper
, install dependencies, and serve the MCPServer using PHP.