An MCP server for AI for Database that lets agents query and inspect databases through scoped API keys. It supports read-only database access, natural-language প্রশ্ন-to-SQL, scheduled alerts/workflows, and dashboard listing across Postgres, MySQL/MariaDB, MongoDB, SQL Server, and SQLite.
From the registry: Query any database in plain English or SQL through a guardrailed, read-only data layer.
Please install the `aifordatabase-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Node.js and npm/npx** — The server is launched via npx, so Node.js with npm/npx must be installed on the system.
- **Create an AI for Database API key** — Sign up for AI for Database, add a database connection, then create an API key with the scopes you need (such as query, chat, connections, dashboards, workflows, usage, or *). (https://app.aifordatabase.com/signup)
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["aifordatabase-mcp"]
- required environment variables:
- `AFD_API_KEY`: Your AI for Database bearer API key. The README indicates it should start with afd_. (example: `<your-afd-api-key>`)
- optional environment variables:
- `AFD_API_BASE`: Override the AI for Database API base URL. (example: `<your-api-base-url>`)
Note: The README shows a standard stdio MCP configuration using npx. Default API base is https://app.aifordatabase.com/api/v1 if AFD_API_BASE is not set.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.AFD_API_KEYrequiredBearer API key used to authenticate requestsAFD_API_BASEOverride the API base URLMCP server for interacting with the Supabase platform