Skip to content

Connecting NautobotGPT MCP Server to Claude Code

This guide walks you through connecting the NautobotGPT MCP Server to Claude Code.

Prerequisites

Configure Claude Code

Claude Code natively supports remote MCP servers over HTTP. You add the server using the claude mcp add command.

claude mcp add --transport http nautobotgpt https://YOUR_NAUTOBOTGPT_INSTANCE.nautobot.cloud/mcp \
  --header "Authorization: Bearer YOUR_NAUTOBOTGPT_API_KEY"

Configuration:

  • https://YOUR_NAUTOBOTGPT_INSTANCE.nautobot.cloud/mcp - Your NautobotGPT MCP Server's URL
  • --header - Passes your NautobotGPT API key as a Bearer token

Verify Connection

After adding the server, verify it is configured correctly:

# List all configured MCP servers
$ claude mcp list

Checking MCP server health...

nautobotgpt: https://YOUR_NAUTOBOTGPT_INSTANCE.nautobot.cloud/mcp (HTTP) -  Connected
# Get details for the NautobotGPT MCP Server
$ claude mcp get nautobotgpt

Within a Claude Code session, you can also check the server status by typing:

/mcp

Managing the Server

# Remove the NautobotGPT MCP Server
$ claude mcp remove nautobotgpt

Troubleshooting

Server Not Connecting

  1. Verify server is running - Check that NautobotGPT is accessible
  2. Check the endpoint - Ensure the URL ends with /mcp
  3. Verify your API key - An invalid NautobotGPT API key will prevent successful connection
  4. Check server status - Run /mcp within a Claude Code session to see the connection status