Bike Router

v0.3.0
io.github.JonasHeinickeBio/bike-router Checked 2 days ago Published 1 month ago

Plan bike routes with a self-hosted OSM service: facts only, with weather and sights.

Values you need

VariableWhat it is
BIKE_ROUTER_API_URLrequired Address of the running pyBikeRouter API this server asks (http or https). Default: http://127.0.0.1:8000

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add bike-router -e BIKE_ROUTER_API_URL=http://127.0.0.1:8000 -- uvx bike-router==0.3.0 mcp serve
Add to claude_desktop_config.json
{
  "mcpServers": {
    "bike-router": {
      "args": [
        "bike-router==0.3.0",
        "mcp",
        "serve"
      ],
      "command": "uvx",
      "env": {
        "BIKE_ROUTER_API_URL": "http://127.0.0.1:8000"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "bike-router": {
      "args": [
        "bike-router==0.3.0",
        "mcp",
        "serve"
      ],
      "command": "uvx",
      "env": {
        "BIKE_ROUTER_API_URL": "http://127.0.0.1:8000"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "BIKE_ROUTER_API_URL",
      "id": "bike-router-api-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "bike-router": {
      "args": [
        "bike-router==0.3.0",
        "mcp",
        "serve"
      ],
      "command": "uvx",
      "env": {
        "BIKE_ROUTER_API_URL": "${input:bike-router-api-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.bike-router]
command = "uvx"
args = ["bike-router==0.3.0", "mcp", "serve"]
env = { "BIKE_ROUTER_API_URL" = "http://127.0.0.1:8000" }

For AI agents

  1. Ask the user for: BIKE_ROUTER_API_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: plan_route, explain_route, route_weather, sights_along_route.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json