A minimal example showing how to create an MCP server with cryptocurrency tools.
get_price- Get the current price of a cryptocurrencyget_trending- Get trending cryptocurrenciesget_market_overview- Get an overview of the crypto market
npm install# Development mode
npm run dev
# Production mode
npm run build
npm startEdit your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"basic-crypto": {
"command": "node",
"args": ["/path/to/basic-mcp-server/dist/index.js"]
}
}
}Once configured, ask Claude:
- "What's the current price of Bitcoin?"
- "Show me trending cryptocurrencies"
- "Give me a market overview"
To add more tools, add them to the tools object in src/index.ts:
const tools = {
// ... existing tools
my_new_tool: {
description: "Does something useful",
inputSchema: {
type: "object",
properties: {
param1: { type: "string", description: "Parameter description" },
},
required: ["param1"],
},
handler: async (params: { param1: string }) => {
return {
content: [{ type: "text", text: "Result" }],
};
},
},
};basic-mcp-server/
├── src/
│ └── index.ts # Main server code
├── package.json # Dependencies
└── README.md # This file
- Add real API integrations (CoinGecko, etc.)
- Add wallet tools
- Add DeFi tools
- See the full documentation