
truss44/mcp-crypto-price
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
truss44/mcp-crypto-price - это кандидат на сервер MCP, импортированный из https://github.com/truss44/mcp-crypto-price.
Обзор
truss44/mcp-crypto-price - это кандидат на сервер MCP, импортированный из https://github.com/truss44/mcp-crypto-price.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP), который обеспечивает комплексный анализ криптовалюты с использованием API CoinCap. Этот сервер предлагает данные о ценах в реальном времени, анализ рынка и исторические тенденции через простой в использовании интерфейс. Поддерживает как STDIO, так и потоковые HTTP-перевозки.
Требования
Node.js 22.14+
** CoinCap API key** via COINCAP_API_KEY
##Что нового
**Удалить CoinCap v2 API. Теперь используется только API v3. Требуется COINCAP_API_KEY (бесплатный уровень доступен на pro.coincap.io/dashboard)
Добавлен потоковый HTTP-транспорт (при сохранении совместимости STDIO)
Работает полностью автономно по STDIO и потоковому HTTP - не требуется внешний реестр или время выполнения
- 6 новых инструментов:
assets-search,market-global,assets-compare,analysis-candlestick,price-convert,assets-info** Иерархическое наименование инструментов**: все инструменты, организованные в категории с префиксированными именамиprice-*,market-*,assets-*,analysis-***Схемы вывода : все инструменты теперь объявляютoutputSchemaсstructuredContentдля безопасных для типа ответов ** Лучшие практики MCP:isErrorфлаг ошибок проверки, описание сервера иasset://{symbol}шаблон ресурса
Использование
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Supports both STDIO and Streamable HTTP transports.
Requirements
- Node.js 22.14+
- CoinCap API key via
COINCAP_API_KEY
What’s New
- BREAKING: CoinCap v2 API removed. Now uses v3 API exclusively. A
COINCAP_API_KEYis required (free tier available at pro.coincap.io/dashboard) - Streamable HTTP transport added (while keeping STDIO compatibility)
- Runs fully standalone over STDIO and Streamable HTTP - no external registry or runtime required
- 6 new tools:
assets-search,market-global,assets-compare,analysis-candlestick,price-convert,assets-info - Hierarchical tool naming: All tools organized into category-prefixed names (
price-*,market-*,assets-*,analysis-*) - Output schemas: All tools now declare
outputSchemawithstructuredContentfor type-safe responses - MCP best practices:
isErrorflag on validation errors, server description, andasset://{symbol}resource template
Usage
Add this configuration to your Claude Desktop config file:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-crypto-price": {
"command": "npx",
"args": ["-y", "mcp-crypto-price"],
"env": {
"COINCAP_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
If your MCP client requires launching via cmd.exe on Windows:
{
"mcpServers": {
"mcp-crypto-price": {
"command": "cmd",
"args": ["/c", "npx", "-y", "mcp-crypto-price"],
"env": {
"COINCAP_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Development scripts
pnpm watch # Development: recompile on change (tsc --watch); pair with `node --watch dist/http.js` for HTTP hot reload
pnpm build # Compile TypeScript → dist/
pnpm format # Format source files with Prettier
pnpm lint # Check for lint errors (ESLint + typescript-eslint)
pnpm lint:fix # Auto-fix lint errors
pnpm types:check # TypeScript type-check without emitting files
pnpm test # Run all tests with Vitest
pnpm test:coverage # Run tests with coverage report (Vitest)
pnpm inspector # Open MCP inspector for interactive debugging
Run as Streamable HTTP server
You can run the server over HTTP for environments that support MCP over HTTP streaming.
Установка
npx -y mcp-crypto-priceКонфигурация
{
"mcpServers": {
"mcp-crypto-price": {
"command": "npx",
"args": ["-y", "mcp-crypto-price"],
"env": {
"COINCAP_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}