Skip to content

Error when connecting to containerized netbox-mcp-server #58

Description

@jcollins313

Steps to Reproduce

When I bring up a web interface to http://<server_ip>:8000/mcp I receive the following:

{
  "jsonrpc": "2.0",
  "id": "server-error",
  "error": {
    "code": -32600,
    "message": "Not Acceptable: Client must accept text/event-stream"
  }
}

This doesn't seem expected.
I built the container per the instructions:

Build the image

docker build -t netbox-mcp-server:latest .

I'm running the container with the recommended command:

Run with HTTP transport (required for Docker containers)

docker run --rm \
  -e NETBOX_URL=https://netbox.example.com/ \
  -e NETBOX_TOKEN=<your-api-token> \
  -e TRANSPORT=http \
  -e HOST=0.0.0.0 \
  -e PORT=8000 \
  -p 8000:8000 \
  netbox-mcp-server:latest

I have tried connecting this mcp server to n8n and received an error and would like to know if I'm missing something.

Expected Behavior

I am expecting some success language when connecting to http://<server_ip>:8000/mcp

Observed Behavior

When I bring up a web interface to http://<server_ip>:8000/mcp I receive the following:

{
  "jsonrpc": "2.0",
  "id": "server-error",
  "error": {
    "code": -32600,
    "message": "Not Acceptable: Client must accept text/event-stream"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageThis issue is awaiting triage by a maintainertype: bugA confirmed report of unexpected behavior in the application

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions