Prepare the server locally
Run this once before adding it to Claude Code.
pnpm install
pnpm buildRegister it in Claude Code
claude mcp add bitbank-api -- node /path/to/bb-api-mcp/dist/index.jsReplace any placeholder paths in the command with the real path on your machine.
Make your agent remember this setup
bitbank-api's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.
npx conare@latestFree · one command · indexes the sessions already on disk. Set up in the browser instead →
What it does
- Exposes TypeScript SDK source code to AI assistants
- Provides structured overview of client classes and methods
- Enables keyword-based searching across SDK source files
- Allows reading raw content of specific SDK files
Tools 4
list_sdk_filesList all TypeScript source files in the bitbank-api SDKget_sdk_fileReturn the full content of a specific SDK source filesearch_sdkSearch across all SDK source files for a keywordget_api_overviewReturn a structured overview of all client classes and their public methodsEnvironment Variables
BITBANK_API_SRC_PATHAbsolute path to the bitbank-api SDK src directoryTry it
Original README from bb-sdk/bb-api-mcp
@pokooo/bb-api-mcp
Model Context Protocol (MCP) server for bitbank-api — exposes the TypeScript SDK source to AI assistants via tools and resources.
Tools
| Tool | Description |
|---|---|
list_sdk_files |
List all TypeScript source files in the bitbank-api SDK |
get_sdk_file |
Return the full content of a specific SDK source file |
search_sdk |
Search across all SDK source files for a keyword (case-insensitive, with file name and line number) |
get_api_overview |
Return a structured overview of all client classes and their public methods |
Resources
| URI | Description |
|---|---|
bitbank-api://overview |
Structured summary of all SDK clients and their methods |
bitbank-api://source/ |
Raw content of an individual SDK source file |
Installation
pnpm install
pnpm build
Requirements: Node.js 18+, and the bitbank-api repository cloned locally.
Quick Start
By default the server looks for the SDK at ../bitbank-api/src relative to this package. Override with an environment variable:
export BITBANK_API_SRC_PATH=/path/to/bitbank-api/src
node dist/index.js
Claude Desktop
Add the following to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"bb-api-mcp": {
"command": "node",
"args": ["/path/to/bb-api-mcp/dist/index.js"],
"env": {
"BITBANK_API_SRC_PATH": "/path/to/bitbank-api/src"
}
}
}
}
Configuration
| Environment Variable | Default | Description |
|---|---|---|
BITBANK_API_SRC_PATH |
../bitbank-api/src |
Absolute path to the bitbank-api SDK src directory |
Development
pnpm dev # Watch mode (tsc --watch)
pnpm build # Compile TypeScript
pnpm start # Start the server