FactQL

v0.1.7
io.github.factql/factql-mcp Checked 6 hours ago Published 2 days ago

Ask plain-English questions of your database: answers, the query that ran, and the rows.

Values you need

VariableWhat it is
FACTQL_API_KEYrequired secret FactQL API key (an ask-only key is enough)
FACTQL_BASE_URLoptional FactQL API base URL Default: https://api.factql.ai
FACTQL_WORKSPACE_IDoptional Default workspace, for tenants that use workspaces
FACTQL_END_USER_IDoptional Who is asking; defaults to mcp:<os user>

PyPI (uvx) discovery passed

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

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

Remote (hosted)

Run in a terminal
claude mcp add --transport http factql-mcp https://api.factql.ai/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "factql-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.factql.ai/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "factql-mcp": {
      "url": "https://api.factql.ai/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "factql-mcp": {
      "type": "http",
      "url": "https://api.factql.ai/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.factql-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://api.factql.ai/mcp"]

For AI agents

  1. Ask the user for: FACTQL_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: whoami, ask.
  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