grantd

v0.1.0
io.github.rafavecchi/grantd Checked 16 hours ago Published 5 months ago

Grantd MCP server: let your AI agent act on a user's behalf across third-party APIs via OAuth.

Values you need

VariableWhat it is
GRANTD_API_KEYrequired secret A Grantd secret key (sk_...). Treat it like a password.
GRANTD_BASE_URLoptional Base URL of your Grantd broker (default http://localhost:8787).
GRANTD_END_USERoptional Default end-user id so tools don't need it passed each call.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add grantd -e 'GRANTD_API_KEY=<GRANTD_API_KEY>' -- npx -y grantd-mcp@0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "grantd": {
      "args": [
        "-y",
        "grantd-mcp@0.1.0"
      ],
      "command": "npx",
      "env": {
        "GRANTD_API_KEY": "<GRANTD_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "grantd": {
      "args": [
        "-y",
        "grantd-mcp@0.1.0"
      ],
      "command": "npx",
      "env": {
        "GRANTD_API_KEY": "<GRANTD_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GRANTD_API_KEY",
      "id": "grantd-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "grantd": {
      "args": [
        "-y",
        "grantd-mcp@0.1.0"
      ],
      "command": "npx",
      "env": {
        "GRANTD_API_KEY": "${input:grantd-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.grantd]
command = "npx"
args = ["-y", "grantd-mcp@0.1.0"]
env = { "GRANTD_API_KEY" = "<GRANTD_API_KEY>" }

For AI agents

  1. Ask the user for: GRANTD_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: list_providers, check_connection, create_connect_link, call_provider.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json