MCPServer + CoinGecko Wrapper logo

MCPServer + CoinGecko Wrapper

by unsimpledev

This repository provides a Model Context Protocol (MCP) server and a CoinGecko wrapper. It allows agents to access cryptocurrency data from CoinGecko through MCP requests.

View on GitHub

Last updated: N/A

What is MCPServer + CoinGecko Wrapper?

This project consists of two main components: a PHP-based MCP server that receives and responds to MCP requests, and a Node.js/TypeScript-based wrapper for the CoinGecko API. The wrapper exposes cryptocurrency data, such as price and historical information, through an HTTP endpoint compatible with MCP.

How to use MCPServer + CoinGecko Wrapper?

First, install the dependencies for the CoinGecko wrapper using npm install and build it with npm run build. Then, serve the PHP mcpserver using a web server like XAMPP or Apache. Finally, configure an MCP-compatible agent (e.g., Claude) to send MCP requests to the webhook.php endpoint of the server, specifying coingecko as the tool_choice and providing the desired operation and parameters in the input field.

Key features of MCPServer + CoinGecko Wrapper

  • Receives and processes MCP requests

  • Integrates with the CoinGecko API

  • Exposes cryptocurrency data (price, info, history)

  • Provides a structured MCP response for agents

Use cases of MCPServer + CoinGecko Wrapper

  • Enabling AI agents to access real-time cryptocurrency data

  • Building cryptocurrency trading bots

  • Integrating cryptocurrency information into AI-powered applications

  • Creating AI-driven cryptocurrency analysis tools

FAQ from MCPServer + CoinGecko Wrapper

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for AI agents to interact with external tools and services.

What is CoinGecko?

CoinGecko is a cryptocurrency data aggregator that provides information on various cryptocurrencies.

What are the requirements to run this?

You need PHP 8+ with curl support for the mcpserver, Node.js 18+ for the wrapper, and an MCP-compatible agent.

How do I install the dependencies?

For the wrapper, navigate to the mcp-coingecko-wrapper directory and run npm install.

How do I serve the PHP server?

You can use XAMPP, Apache, or any PHP server with access to the webhook.php file.