aifordatabase-mcp

v0.1.2
io.github.dann26parr69/aifordatabase-mcp Checked 5 hours ago Published 4 months ago

Query any database in plain English or SQL through a guardrailed, read-only data layer.

Values you need

VariableWhat it is
AFD_API_KEYrequired secret AI for Database API key (starts with afd_). Free at https://app.aifordatabase.com/signup
AFD_API_BASEoptional API base URL override (default https://app.aifordatabase.com/api/v1)

npm (npx) discovery passed

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: AFD_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_connections, get_schema, run_query, ask, list_workflows, create_workflow, run_workflow, list_dashboards, ….
  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