MCP.Market

DataLink MCP server

by pilat·io.github.pilat/mcp-datalink·v1.2.4·4 stars

MCP server for secure database access (PostgreSQL, MySQL, SQLite)

B83/100grade B
What users say
No reviews yet
Be the first
Safety scan
B83/100

full report

Adoption
Growing

4 stars37 downloads/wk

Reviews

Write one

Nobody 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 posts

Read from the package source without running it. The installed server may list more.

  • describe_table

    Retrieve detailed table structure: column names, data types, nullability, defaults, indexes, and foreign key relationships.

  • executewrite action

    Execute INSERT, UPDATE, or DELETE query and return affected row count.

  • explain

    Analyze query execution plan to understand performance characteristics and identify optimization opportunities.

  • list_databases

    List all configured database connections available in this server.

  • list_tables

    List all tables and views in a database schema with row counts and metadata.

  • querywrite action

    Execute 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

no findings
  • 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
Overall 83/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

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
Add to Cursor

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-datalink

Works 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.db

Environment 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.

All DataLink alternatives →
  • DBHub
    Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
    A
  • Faucet
    SQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.
    A
  • Quarry
    Safety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.
    A
  • NeoSQL MCP
    Schemas, SQL, ERDs, and codegen for PostgreSQL, MySQL, Oracle, SQLite, and more via NeoSQL Desktop.
    A
  • DB Explorer
    Read-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advice
    B