
DataLink MCP server
io.github.pilat/mcp-datalink·v1.2.4·4 starsMCP server for secure database access (PostgreSQL, MySQL, SQLite)
4 stars37 downloads/wk
Reviews
Write oneNobody has reviewed DataLink yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
DataLink tools (6, 2 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
describe_tableRetrieve detailed table structure: column names, data types, nullability, defaults, indexes, and foreign key relationships.
executewrite actionExecute INSERT, UPDATE, or DELETE query and return affected row count.
explainAnalyze query execution plan to understand performance characteristics and identify optimization opportunities.
list_databasesList all configured database connections available in this server.
list_tablesList all tables and views in a database schema with row counts and metadata.
querywrite actionExecute a read-only SELECT query and return results as structured data.
Public scan report
scanner v0.1.10 · 2026-10-01 · same rubric, same numbers if you re-run it
- Code scan55 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 2 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How DataLink compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 60% of 802 Databases servers
- Tools
- 6
- the typical Databases server has 8
- Tools that change things
- 33%
- typical: 10%. Fewer write tools means less an agent can break
- GitHub stars
- 4
- more than 70% of 601 Databases servers
- Downloads a week
- 37
- more than 24% of 324 Databases servers with a package
What its tools let an agent do: 4 read · 1 change · 1 run or deploy
Install DataLink in Claude Code, Cursor or VS Code
Runs npx -y @pilat/mcp-datalink on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mcp-datalink -- npx -y @pilat/mcp-datalink
What the publisher says
From the DataLink repository's README, as published. We do not edit it. Read it on GitHub
@pilat/mcp-datalink
MCP server for PostgreSQL, MySQL, and SQLite. Gives AI assistants secure database access via Model Context Protocol.
npx @pilat/mcp-datalinkWorks with Claude Desktop, Claude Code, Cursor, Cline, and any MCP-compatible client.
Installation
Add to your MCP client config file (see config locations below):
{
"mcpServers": {
"datalink": {
"command": "npx",
"args": ["-y", "@pilat/mcp-datalink"],
"env": {
"DATALINK_ANALYTICS_URL": "postgresql://user:password@localhost:5432/analytics",
"DATALINK_ANALYTICS_READONLY": "true",
"DATALINK_INVENTORY_URL": "mysql://user:password@localhost:3306/inventory",
"DATALINK_CACHE_URL": "sqlite:///path/to/cache.db"
}
}
}
}This creates three database connections: analytics (read-only), inventory, and cache.
Connection URL formats:
# PostgreSQL
postgresql://user:password@localhost:5432/dbname
postgresql://user:password@localhost:5432/dbname?sslmode=require
# MySQL
mysql://user:password@localhost:3306/dbname
mysql://user:password@localhost:3306/dbname?ssl=true
# SQLite
sqlite:///path/to/database.db
sqlite:///Users/me/data/app.sqlite
sqlite://../relative/path/data.dbEnvironment Variable Substitution
URLs support ${VAR} syntax to reference other environment variables:
{
"mcpServers": {
"datalink": {
"command": "npx",
"args": ["-y", "@pilat/mcp-datalink"],
"env": {
"DATALINK_MAIN_URL": "${DATABASE_URL}"
}
}
}
}This allows reusing existing environment variables (like DATABASE_URL from your shell or .env file).
Supported syntax:
Examples:
# Reference existing DATABASE_URL
DATALINK_MAIN_URL="${DATABASE_URL}"
# Build URL from parts
DATALINK_MAIN_URL="postgresql://${DB_USER}:${DB_PASS}@${DB_HOST}:5432/mydb"
# With default values
DATALINK_MAIN_URL="postgresql://localhost:${DB_PORT:-5432}/mydb"Config File Locations
Tools
Security
- Prepared statements only (no SQL injection)
- Single statement per query (no chaining)
- DDL blocked (no DROP, ALTER, TRUNCATE)
- Readonly mode per connection
- Response size limit (100 rows, 64KB default, configurable via DATALINKMAXTOTAL_SIZE)
- Query timeout: 30s default, model can request up to 10min, MAX_TIMEOUT caps it
License
MIT
Nothing above is checked by us. What we check is on the safety report.
DataLink: common questions
- Is DataLink MCP server safe?
- Mostly: it is graded B (83/100). Read the DataLink safety report
- How do I install DataLink?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does DataLink need an API key?
- Yes. The registry entry asks for
DATALINK_ANALYTICS_URL. - Is DataLink maintained?
- The last commit was 33 days ago (2026-09-29). The latest release is v1.2.4.
- What can I use instead of DataLink?
- Servers from other publishers that do the same job: DBHub MCP server, Faucet MCP server and Quarry MCP server. Compare all DataLink alternatives.
- How does DataLink compare with other Databases MCP servers?
- safety score 83/100 (higher than 60% of 802 Databases servers); tools 6 (the typical Databases server has 8); tools that change things 33% (typical: 10%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to DataLink
Same job from other publishers: the closest match first, then the best rated.
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- FaucetSQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.not reviewedEstablishedA
- QuarrySafety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.not reviewedGrowingA
NeoSQL MCPSchemas, SQL, ERDs, and codegen for PostgreSQL, MySQL, Oracle, SQLite, and more via NeoSQL Desktop.not reviewedGrowingA- DB ExplorerRead-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advicenot reviewedGrowingB