Nautobot-MCP-Server

ColtMercer/Nautobot-MCP-Server

3.2

If you are the rightful owner of Nautobot-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Nautobot MCP Server is a FastMCP server that provides access to Nautobot GraphQL data through Machine-Callable Tools (MCP) and simple REST endpoints.

Tools
1
Resources
0
Prompts
0

Nautobot MCP Server

FastMCP server exposing Nautobot GraphQL data as Machine-Callable Tools (MCP) and simple REST endpoints.

Quickstart

Run locally (API only)

pip install -e ./src
nautobot-mcp-server

Environment variables:

export HOST=0.0.0.0
export PORT=7001
export NAUTOBOT_URL=http://nautobot:8080
export NAUTOBOT_TOKEN=replace-me

Use Chainlit as the UI (local)

Open a second terminal:

export API_BASE_URL=http://localhost:7001
# If API key auth is enabled:
# export API_KEY=supersecret
chainlit run chainlit_app/app.py -w

Open http://localhost:8000 and type:

tool:get_devices_by_location {"location_name":"NY Data Center"}

Docker

docker build -t nautobot-mcp:dev -f src/Dockerfile .
docker run --rm -p 7001:7001 \
  -e NAUTOBOT_URL=http://nautobot:8080 \
  -e NAUTOBOT_TOKEN=replace-me \
  nautobot-mcp:dev

Health check:

curl -s http://localhost:7001/healthz

List tools:

curl -s http://localhost:7001/tools | jq

Invoke a tool:

curl -s -X POST http://localhost:7001/tools/invoke \
  -H 'Content-Type: application/json' \
  -d '{"tool_name": "get_devices_by_location", "args": {"location_name": "NY Data Center"}}'