Skip to main content

Prerequisites

Before starting with Claude Code CLI, ensure you have Node.js and npm installed:
node --version
npm --version
If not installed, download from nodejs.org. Install Claude Code CLI globally using npm:
npm install -g @anthropic-ai/claude-code
After installation, verify the claude command is available:
claude --version

Setup

1

Add the Danube MCP Server

Use the Claude Code CLI command to add Danube as a remote HTTP server:
claude mcp add --transport http danube https://danube.fastmcp.app/mcp \
  --header "danube-api-key: YOUR_API_KEY"
2

Verify Connection

Launch Claude Code CLI and use the /mcp command to verify the connection:
claude code
Then in Claude Code CLI, type:
/mcp
You should see the danube server listed and connected.

Troubleshooting

If you see “Unknown command: claude” or “command not found”:
  1. Verify installation:
    npm list -g @anthropic-ai/claude-code
    
  2. Check npm global bin directory:
    npm config get prefix
    
    The claude command should be in {prefix}/bin/
  3. Add to PATH (if needed): On macOS/Linux, add to ~/.zshrc, ~/.bashrc, or ~/.config/fish/config.fish:
    export PATH="$(npm config get prefix)/bin:$PATH"
    
    Then restart your terminal or run source ~/.zshrc
  4. Reinstall if needed:
    npm uninstall -g @anthropic-ai/claude-code
    npm install -g @anthropic-ai/claude-code
    
  • Verify the config file path is correct
  • Check JSON syntax (no trailing commas)
  • Restart the CLI
  • Verify your API key is correct
  • Ensure the header is danube-api-key (lowercase)
  • Check that the API key hasn’t expired or been revoked

Recommended: Add the Agent Skill

For the best experience with Claude Code CLI and Danube, we recommend adding the Agent Skill. The Agent Skill teaches Claude how to effectively discover and use tools through the Danube MCP Server, providing better tool discovery patterns, authentication handling, and workflow guidance.

Learn About the Agent Skill

See installation instructions and learn how the skill enhances Claude’s ability to use Danube