idoru / influxdb-mcp-server

An MCP Server for querying InfluxDB
MIT License
10 stars 5 forks source link

Cannot connect to a non local influx database #2

Open aniketb-ds opened 1 month ago

aniketb-ds commented 1 month ago

Using this -

mcp_servers = {
    "influxdb": {
        "command": "npx",
        "args": ["influxdb-mcp-server"],  # Path to your server
        "transport": "stdio",
        "env": {
            "INFLUXDB_TOKEN": os.environ['INFLUXDB_TOKEN'],
            "INFLUXDB_URL": os.environ["INFLUXDB_URL"],
            "INFLUXDB_ORG": os.environ["INFLUXDB_ORG"]
        }
    }
}

It return the following message even when the query is correct (prompting for auth - an html output) ToolMessage(content='<!doctype html><html lang="en"><head><meta charset="utf-8"><meta nB is a time series platform, purpose-built by InfluxData for storing metrics and events, provides reaf=""><link rel="icon" href="/favicon.ico"></head><body><div id="react-root" data-basepath=""></div><s36-410c-95ac-0135e2c57eab', tool_call_id='call_0ee4156f-1532-4bc6-8480-d9b6a7580a72'),

idoru commented 1 month ago

Hi @aniketb-ds thanks for trying this mcp server out.

Can you share what MCP host or library you are running this with?

I use this over my local network with an https:// URL with Claude Desktop without any issues, so I'm bit surprised.