Adb Link MCP 伺服器 | PlugMCP
跳到正文
ADB-Link
Bridging AI Agents to Your Databases
A lightweight, high-performance database gateway designed for AI agents — providing unified SQL access, schema discovery, and tool orchestration across multiple database engines via REST API and MCP (Model Context Protocol).
An MCP server that connects to multiple databases. Supports access control and dynamic SQL query tool registration and invocation.
把任意工具接入任意代理。面向非開發者的 MCP 伺服器目錄;閘道承載流量,n8n 承載應用。
產品
目錄
開發者
公司
Quick Install # One-line install
curl -fsSL https://raw.githubusercontent.com/gnodux/adb-link/main/scripts/install-adb-link.sh | bash
Agent One-Click Setup Install adb-link and configure MCP in one command:
curl -fsSL https://raw.githubusercontent.com/gnodux/adb-link/main/skills/adb-link/scripts/setup-mcp.sh | bash
This auto-detects your agent platform (Claude Desktop, Cursor, Windsurf, Qoder CLI), installs the binary, creates a default config, and registers the MCP server. After running, restart your agent and call list_datasources.
For full instructions you can paste directly into any AI Agent, see AGENT_INSTALL.md .
# Or build from source (requires Go 1.22+)
git clone https://github.com/gnodux/adb-link.git
cd adb-link
make build
Demo A complete workflow: discover datasources, explore schema, then execute queries — all via the MCP protocol.
# 1. List available datasources
curl -s -X POST http://localhost:8000/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-api-key>" \
-d '{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": "list_datasources", "arguments": {}}
}'
# => [{"name":"my-postgres","type":"postgresql","description":"Production DB", ...}]
# 2. List databases in a datasource
curl -s -X POST http://localhost:8000/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-api-key>" \
-d '{
"jsonrpc": "2.0", "id": 2, "method": "tools/call",
"params": {"name": "list_databases", "arguments": {"datasource_name": "my-postgres"}}
}'
# => [{"name":"mydb","comment":"Main application database"}, ...]
# 3. Get schema (tables & columns)
curl -s -X POST http://localhost:8000/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-api-key>" \
-d '{
"jsonrpc": "2.0", "id": 3, "method": "tools/call",
"params": {"name": "get_schema", "arguments": {"datasource_name": "my-postgres", "database": "mydb"}}
}'
# => {"tables":[{"name":"users","columns":[{"name":"id","type":"INT4"},{"name":"username","type":"VARCHAR"}, ...]}]}
# 4. Execute a query
curl -s -X POST http://localhost:8000/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-api-key>" \
-d '{
"jsonrpc": "2.0", "id": 5, "method": "tools/call",
"params": {
"name": "execute_query",
"arguments": {
"datasource_name": "my-postgres",
"database": "mydb",
"sql": "SELECT id, username, created_at FROM users ORDER BY created_at DESC LIMIT 10"
}
}
}'
# => {"columns":[...],"rows":[[1,"alice","2026-03-15"], ...],"row_count":3}
Core Features
Quick Start
Install (one-liner) curl -fsSL https://raw.githubusercontent.com/gnodux/adb-link/main/scripts/install-adb-link.sh | bash
This installs the latest release to ~/.adb-link/ and creates a symlink at ~/.local/bin/adb-link.
Build from Source git clone https://github.com/gnodux/adb-link.git
cd adb-link
make build
# Binary: bin/adb-link
Configure Configuration files live in ~/.adb-link/conf/ by default (override via ADB_LINK_CONFIG_DIR).
# Copy example configs to get started
mkdir -p ~/.adb-link/conf
cp conf/mcp_stdio.yaml.example ~/.adb-link/conf/mcp_stdio.yaml
# Edit with your datasource details
Example datasource config:
kind: datasource
name: my-postgres
type: postgresql
description: "Production PostgreSQL"
connection:
host: 127.0.0.1
port: 5432
username: app_user
password: ${PG_PASSWORD} # supports env var interpolation
default_database: mydb
options:
pool_size: 10
kind: users
users:
- name: admin
api_key: "your-secret-api-key"
group: admin
- name: mcp_stdio_user
group: mcp
description: "Default user for MCP stdio transport"
Run # API + MCP HTTP on a single port (default :8000)
adb-link run-all
# API only
adb-link run-api
# MCP over stdio (for IDE/agent integration)
adb-link run-mcp
Verify curl http://localhost:8000/api/health
# {"status":"ok"}
MCP Integration
Claude Desktop / Cursor / Windsurf Add to your MCP client configuration:
{
"mcpServers": {
"adb-link": {
"command": "adb-link",
"args": ["run-mcp"]
}
}
}
The stdio transport uses mcp_stdio_user as the default identity. Configure permissions for this user in your auth/permission YAML files.
Qoder CLI qoder mcp add adb-link -- adb-link run-mcp
Agent Skill Suite A Qoder CLI skill package is bundled in skills/adb-link/. It provides deep context about adb-link's MCP tools and workflows, enabling any Qoder-compatible agent to use adb-link fluently.
# Install user-level (available in all projects)
cp -r skills/adb-link ~/.qoder/skills/
# Or use the setup script (installs binary + registers MCP + installs skill)
curl -fsSL https://raw.githubusercontent.com/gnodux/adb-link/main/skills/adb-link/scripts/setup-mcp.sh | bash
HTTP Transport For remote or multi-client access, use the HTTP transport:
adb-link run-all # serves MCP at /mcp endpoint
Documentation
Architecture ┌─────────────────────────────────────────────────────┐
│ AI Agent / Client │
└──────────┬─────────────────────────┬────────────────┘
│ REST API │ MCP (JSON-RPC)
▼ ▼
┌──────────────────────────────────────────────────────┐
│ ADB-Link Server │
│ ┌──────────┐ ┌───────────┐ ┌────────────────────┐ │
│ │ Router │ │ MCP │ │ Config Service │ │
│ │ + Auth │ │ Server │ │ (Hot-Reload/YAML) │ │
│ └─────┬────┘ └─────┬─────┘ └────────────────────┘ │
│ │ │ │
│ ┌─────▼─────────────▼───────────────────────────┐ │
│ │ Service Layer │ │
│ │ Schema · Query · Async · Permission · Meta │ │
│ └──────────────────┬────────────────────────────┘ │
│ │ │
│ ┌──────────────────▼────────────────────────────┐ │
│ │ Connection Service (Pool + Health) │ │
│ └──────────────────┬────────────────────────────┘ │
│ │ │
│ ┌──────────────────▼────────────────────────────┐ │
│ │ Dialect Layer (DSN Builder per DB engine) │ │
│ └───────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────┘
│ │ │ │
┌─────┘ ┌────┘ ┌────┘ ┌────┘
▼ ▼ ▼ ▼
MySQL PostgreSQL ClickHouse SQLite ...
API Endpoints
MCP Tools All MCP tools are available via tools/call:
list_datasources — List all datasources
list_databases — List databases in a datasource
get_schema — Get full schema
get_table_info / get_view_info — Column details
execute_query — Run SQL/DSL
explain_query — Execution plan
submit_async_query — Async query
get_async_query_status / get_async_query_result — Poll async results
register_tool / unregister_tool — Dynamic tool management
register_datasource / unregister_datasource — Dynamic datasource management
Any dynamically registered tool
Configuration All configuration is YAML-based in the config directory (~/.adb-link/conf/ by default):
Environment variables are supported via ${VAR_NAME} syntax. Configuration changes are hot-reloaded automatically.
Environment Variables
Contributing Contributions are welcome! Please feel free to submit issues and pull requests.
# Development workflow
make fmt # Format code
make vet # Run tests
make test # Run tests
make build # Build binary
License
If you find ADB-Link useful, please give it a star!
Graphify Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, e Private Gpt Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more. Works with any OpenAI-compatible inference server. Scientific Agent Skills Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biolog Open Code Review Secure, fast, efficient, battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic pipelines + LLM Agent, precise line-level comments, built-in multi-language ruleset (NPE, Codebase Memory Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection. Orm The Prisma ORM: write your application in TypeScript with human-readable queries instead of SQL. Host your database on Prisma Postgres and your app on Prisma Compute. OpenViking Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills. Context Mode Free, local plugin that keeps tool output out of your coding agent's context window. Sandbox and SQLite FTS5 search, 99% fewer bytes in context. Works with Claude Code, Codex, Pi, OMP, OpenCode, Gemin Dbx 25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Dock Xerj AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory a Wasp The batteries-included full-stack framework for the AI era. Develop JS/TS web apps (React, Node.js, and Prisma) using declarative code that abstracts away complex full-stack features like auth, backgr WrenAI GenBI (Generative BI) for AI agents, an open-source, governed text-to-SQL through an open context layer that turns natural-language questions into trusted dashboards, charts, and SQL across 20+ data s Databases MCP 伺服器 最佳 Databases MCP 伺服器
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
如何安裝 Adb Link? 在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
Adb Link 需要 API 金鑰嗎? 這筆記錄未列出必要的環境變數。
Adb Link 使用哪種傳輸方式? Adb Link 透過 stdio 在本機執行。
Adb Link 上次檢查是什麼時候? 上次檢查時間:2026-10-28。 An MCP server that connects to multiple databases. Supports access control and dynamic SQL query tool registration and invocation.
工具
0 / 10