GSA Per Diem

v0.2.6
io.github.1102tools/gsa-perdiem-mcp Checked 18 hours ago Published 7 months ago

GSA Per Diem federal travel lodging and M&IE rates.

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
PERDIEM_API_KEYrequired secret Free api.data.gov key from https://api.data.gov/signup/ for 1,000 req/hr.

PyPI (uvx) discovery passed

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

Run in a terminal
claude mcp add gsa-perdiem-mcp -e 'PERDIEM_API_KEY=<PERDIEM_API_KEY>' -- uvx --with 'mcp<2' gsa-perdiem-mcp==0.2.6
Add to claude_desktop_config.json
{
  "mcpServers": {
    "gsa-perdiem-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "gsa-perdiem-mcp==0.2.6"
      ],
      "command": "uvx",
      "env": {
        "PERDIEM_API_KEY": "<PERDIEM_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "gsa-perdiem-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "gsa-perdiem-mcp==0.2.6"
      ],
      "command": "uvx",
      "env": {
        "PERDIEM_API_KEY": "<PERDIEM_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "PERDIEM_API_KEY",
      "id": "perdiem-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "gsa-perdiem-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "gsa-perdiem-mcp==0.2.6"
      ],
      "command": "uvx",
      "env": {
        "PERDIEM_API_KEY": "${input:perdiem-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.gsa-perdiem-mcp]
command = "uvx"
args = ["--with", "mcp<2", "gsa-perdiem-mcp==0.2.6"]
env = { "PERDIEM_API_KEY" = "<PERDIEM_API_KEY>" }

For AI agents

  1. Ask the user for: PERDIEM_API_KEY. 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: lookup_city_perdiem, lookup_zip_perdiem, lookup_state_rates, get_mie_breakdown, estimate_travel_cost, compare_locations.
  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