Aifordatabase MCP vs Dbhub
A side-by-side look at the Aifordatabase MCP and Dbhub MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.
Verdict: choose Aifordatabase MCP for databases work as a local process; choose Dbhub for databases as a local process. You can also run both side by side in one mcpServers block.
Which MCP server should you choose?
Choose Aifordatabase MCP when
- You need dedicated capabilities in the Databases domain.
- You prefer a local stdio subprocess transport.
- You have the keys it needs:
AFD_API_KEY. - You want tools like
list_connections, get_schema, run_query.
Choose Dbhub when
- You need dedicated capabilities in the Databases domain.
- You prefer a local stdio subprocess transport.
- You want tools like
dbhub.toml.
Feature & specification comparison
Rows where the two servers differ are marked.
| Spec | ||
|---|---|---|
| Category | Databases | Databases |
| Quality signal | 40/100 · Fair | 57/100 · Good |
| Install command | Confirmed | Confirmed |
| Transport | Local subprocess (stdio) | Local subprocess (stdio) |
| Auth | Not declared | Not declared |
| Pricing | Not declared | Not declared |
| Required env vars | AFD_API_KEY | None listed |
| Verified owner | Community listing | Community listing |
| GitHub stars | 0 | 3,713 |
| Directory activity | 1 views 0 installs 0 upvotes | 1 views 0 installs 0 upvotes |
| Tools | 9 | 1 |
| Full listing | View Aifordatabase MCP | View Dbhub |
Tools & capabilities
Aifordatabase MCP tools 9
list_connectionsList the database connections available to this API key. Returns id, name, type (POSTGRES/MYSQL/MARIADB/MSSQL/MONGODB/SQLITE), host, database, isActive. Use the returned id as connectionId in other tools.get_schemaGet the cached schema (tables, columns, relationships) of a database connection. Call this once before writing SQL — no discovery queries needed.run_queryRun a SQL query directly against a database connection. Deterministic, no AI in the loop, no credits consumed. Returns columns, rows, rowCount, executionTime. On a SQL error the database's own message is returned — fix the SQL and retry. Rows cap at 500, so aggregate in SQL rather than pulling raw tables.askAsk a question about a database in plain English. The API's own agent translates it to SQL, runs it, and returns the answer (content), the SQL used (sqlQuery), and the results (queryResult). For follow-up questions, pass the conversationId from the previous response. Consumes AI credits — for repeated/known queries prefer run_query.list_workflowsList workflows (scheduled database alerts / reports). Returns each workflow with its trigger type and step/action counts.create_workflowCreate a workflow: SQL steps + EMAIL/WEBHOOK actions, run manually or on a cron schedule. To make an alert, write a step query that only returns rows when the condition fires and set stopIfEmpty=true — actions then run only when rows come back. Step results are auto-appended to the email/webhook payload. Point a WEBHOOK at a Slack incoming-webhook URL for Slack alerts. Free plan allows 3 workflows.run_workflowRun a workflow immediately (regardless of its schedule) and return the run record with its status.list_dashboardsList dashboards. Dashboards re-run their widget queries on schedule server-side. To create one, the fastest path is the ask tool: 'create a dashboard showing revenue by month' with a connectionId.get_usageGet the current AI-credit budget: included, topUp, used, and remaining (in cents) for the current billing period. Check this to self-throttle ask calls before hitting a 402.
Dbhub tools 1
dbhub.toml
Ready-to-paste client configs
Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.
Aifordatabase MCP
{
"mcpServers": {
"aifordatabase-mcp": {
"command": "npx",
"args": [
"-y",
"aifordatabase-mcp"
],
"env": {
"AFD_API_KEY": "YOUR_AFD_API_KEY_HERE"
}
}
}
}
Dbhub
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub@latest"
]
}
}
}
Frequently asked questions
Aifordatabase MCP is categorized under Databases and uses a local stdio subprocess. Dbhub belongs to Databases and uses a local stdio subprocess. Pick Aifordatabase MCP for databases work and Dbhub for databases.
Copy the mcpServers block from the config section on this page into your client's config (for example claude_desktop_config.json or ~/.cursor/mcp.json), then fully restart the client.
Aifordatabase MCP has no declared pricing — check the project's own site. Dbhub has no declared pricing — check the project's own site. If a server needs environment variables such as API keys, define them under the env key in your client's MCP config.
Yes. MCP clients support multiple servers: add aifordatabase-mcp and dbhub as separate keys in the same mcpServers object, and your assistant will call tools from either one.
On AllMCPs, Aifordatabase MCP has a quality signal of 40/100 (Fair) with 1 views, 0 installs and 0 GitHub stars. Dbhub has 57/100 (Good) with 1 views, 0 installs and 3,713 GitHub stars.