DocsClaude / MCPClaude Code setup
Claude / MCP

Use Nextbridge from Claude Code

Claude Code (the terminal coding agent from Anthropic) speaks the same MCP protocol as Claude Desktop. The exact same /api/mcp endpoint and the same API key work — only the place you paste the config changes.

CLI-friendlySame /api/mcpNo install
1

Generate an API key

Go to Settings → Security → API keys, create a USER-scoped key, copy it (starts with nbx_user_) — you will only see it once.

2

Add Nextbridge to Claude Code

Claude Code reads MCP servers from ~/.claude/mcp.json (or per-project.claude/mcp.json). The shape is identical to Claude Desktop'smcpServers block.

json~/.claude/mcp.json
1{
2 "mcpServers": {
3 "nextbridge": {
4 "command": "npx",
5 "args": [
6 "-y",
7 "mcp-remote",
8 "https://nextbridge.exchange/api/mcp",
9 "--header",
10 "Authorization: Bearer ${NEXTBRIDGE_KEY}"
11 ],
12 "env": {
13 "NEXTBRIDGE_KEY": "nbx_user_REPLACE_WITH_YOUR_KEY"
14 }
15 }
16 }
17}

Or use the built-in shortcut from inside Claude Code:

bashterminal
1claude mcp add nextbridge \
2 --command "npx -y mcp-remote https://nextbridge.exchange/api/mcp \
3 --header 'Authorization: Bearer YOUR_KEY'"
Treat ~/.claude/mcp.json like an .env file — do not commit it. The key it holds can place trades and (if you grant the scope) initiate withdrawals.
3

Use it from the CLI

Start a fresh Claude Code session in any project. The Nextbridge tools become available to the agent on the next turn — verify with /mcp and you should seenextbridge listed as connected with its tool count.

textexample prompt
1> Take my Nextbridge USDT balance, allocate 25% to BTC and 25% to ETH,
2 using market orders. Show me the projected portfolio split first
3 and wait for me to say "go" before placing the trades.

The same rate limits and per-key audit log apply. Every call is recorded under the API key's id and visible in Settings → Security.