Coingecko MCP
MCP server: Coingecko MCP
Installation
npx coingecko-mcpAsk AI about Coingecko MCP
Powered by Claude Β· Grounded in docs
I know everything about Coingecko MCP. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
coingeckomcp
A CoinGecko MCP that lets AI securely fetch real-time crypto prices, market charts
Features
- β Built with Model Context Protocol (MCP) SDK
- π Integrated authentication via Osiris Hub
- π Memory (Development) database
- π· TypeScript
- π οΈ Example tools, resources, prompts, and schemas
Quick Start
-
Install dependencies:
pnpm install -
Configure environment:
cp .env.example .env # Edit .env with your configuration -
Start development server:
pnpm run dev
Configuration
Environment Variables
HUB_BASE_URL- Your Osiris Hub URLOAUTH_CLIENT_ID- OAuth client ID from HubOAUTH_CLIENT_SECRET- OAuth client secret from HubDATABASE_ADAPTER- Database type (memory)
Database Setup
Memory Database
No setup required. Data is stored in memory (development only). β οΈ Warning: Data will be lost when the server restarts.
Development
Available Scripts
pnpm run dev- Start development server with hot reloadpnpm run build- Build for production (TypeScript β JavaScript)pnpm run start- Start production serverpnpm run type-check- Run TypeScript type checking
Project Structure
coingeckomcp/
βββ index.ts # Main MCP server entry point
βββ client.ts # MCP client setup and configuration
βββ tools/
β βββ hello-world.ts # Simple hello world tool
βββ resources/
β βββ hello-world.ts # Hello world resource
βββ prompts/
β βββ hello-world.ts # Hello world prompt template
βββ schema/
β βββ index.ts # Zod schema definitions
βββ .env # Environment variables
βββ .env.example # Environment template
βββ package.json # Dependencies and scripts
MCP Components
Tools
Hello World Tool
A simple greeting tool that demonstrates basic MCP tool functionality.
Usage:
{
"name": "hello_world",
"arguments": {
"name": "Alice"
}
}
Resources
Hello World Resource
Provides a simple JSON resource demonstrating MCP resource functionality.
URI: hello://world
Prompts
Hello World Prompt
Generates prompts about specified topics.
Arguments:
topic(optional): Topic to ask about (default: "osiris")
Adding New Components
Adding a Tool
Create a new file in tools/ and export the tool registration function:
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { z } from 'zod';
export function registerMyTool(server: McpServer) {
const MyToolSchema = z.object({
param1: z.string().describe('Parameter description')
});
server.tool('my_tool', 'Description of what this tool does', MyToolSchema, async ({ param1 }) => {
// Your tool logic here
return {
content: [{
type: 'text',
text: `Tool result: ${param1}`
}]
};
});
}
Then register it in client.ts.
Adding a Resource
Create a new file in resources/ and export the resource registration function:
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
export function registerMyResource(server: McpServer) {
server.resource('my://resource', 'My Resource', 'Resource description', async () => {
return {
contents: [{
uri: 'my://resource',
mimeType: 'application/json',
text: JSON.stringify({ data: 'Resource data' })
}]
};
});
}
Authentication
This server uses Osiris Hub for authentication. Make sure your Hub is configured and your OAuth credentials are correct.
Deployment
-
Build the project:
pnpm run build -
Set production environment variables
-
Start the server:
NODE_ENV=production pnpm run start
Support
- π MCP Documentation
- π Osiris SDK Documentation
- π¬ Community Discord
- π Issue Tracker
Built with β€οΈ using Model Context Protocol and Osiris SDK
