loading…
Search for a command to run...
loading…
A Model Context Protocol server that provides cryptocurrency data tools and resources via an HTTP endpoint. It enables users to fetch real-time market data from
A Model Context Protocol server that provides cryptocurrency data tools and resources via an HTTP endpoint. It enables users to fetch real-time market data from Binance, track activity logs, and generate cryptocurrency executive summaries.
A small Model Context Protocol (MCP) server built with:
@modelcontextprotocol/sdkexpresstypescriptzodThe app exposes a Streamable HTTP MCP endpoint at /mcp and includes a few example tools, resources, and prompts centered around cryptocurrency data.
src/
server.ts
http/
createMcpApp.ts
mcp/
createMcpServer.ts
services/
cryptoService.ts
src/server.ts
Starts the HTTP server and wires the app together.
src/http/createMcpApp.ts
Contains the HTTP and MCP transport boilerplate:
request parsing, origin validation, session management, and /mcp route handling.
src/mcp/createMcpServer.ts
Defines the MCP server itself:
tools, resources, prompts, and their schemas.
src/services/cryptoService.ts
Contains the business logic for symbol normalization, Binance API calls, and activity log access.
The server currently registers:
Tools:
ping, add_numbers, get_price, get_price_change
Resources:
activity_log, crypto_price
Prompt:
executive_summary
The crypto-related tools call Binance's public market-data endpoints and append activity to activity.log.
Node 20+ is recommended because the app relies on the built-in fetch API.
npm install
Start the server directly from TypeScript with tsx:
npx tsx src/server.ts
By default, the server listens on:
http://127.0.0.1:8787/mcp
You can override the port with PORT:
PORT=3000 npx tsx src/server.ts
This repo does not currently include a tsconfig.json or build script, so the simplest way to validate the TypeScript sources is:
npx tsc --noEmit --module nodenext --moduleResolution nodenext --target es2022 --esModuleInterop src/server.ts src/http/createMcpApp.ts src/mcp/createMcpServer.ts src/services/cryptoService.ts
If you want to add a real build pipeline later, the next step would usually be:
tsconfig.jsonbuild, dev, and typecheck scripts to package.jsondist/ directoryThere is not a dedicated automated test suite yet.
Right now, the practical testing flow is:
npx tsx src/server.tsping and confirm it returns pongadd_numbers with two values and confirm the sumget_price with BTC, ETH, Bitcoin, or Ethereumget_price_change and confirm a 24-hour summary is returnedactivity_log resource and confirm requests are recordedexecutive_summary prompt and confirm it references the crypto tools correctlyactivity.log at the project root.tsconfig.jsondev, build, typecheck, and testДобавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"my-http-mcp-server": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.