LabscoMCP early access ↗
niledatabaseMCP SERVER · OFFICIAL PROJECT

Nile Postgres

Create Nile databases, manage credentials and tenants, and run SQL — all from the client.

by niledatabase ↗Relational SQL Databases✓ Official

LABSCO SUMMARY

Provision the database and query it in the same conversation.

Most database servers assume the database already exists. This one creates it, mints credentials, creates tenants and then runs SQL — which suits Nile's tenant-per-customer model, where spinning up isolated data is routine rather than a one-off. Two things to hold onto: a new credential's password is shown once, and delete-database is as reachable as list-databases.

What it is

The Nile platform's MCP server. It covers the whole lifecycle of a Nile Postgres database: create it, get credentials, inspect schema, run queries, and manage the tenants that Nile's multi-tenant model is built around.

What you get

  • Databases — create-database (region AWS_US_WEST_2 for Oregon or AWS_EU_CENTRAL_1 for Frankfurt), list-databases, get-database, delete-database
  • Credentials and regions — create-credential, which returns a one-time password you must save when shown, list-credentials, list-regions
  • SQL — execute-sql against a named database, with credentials created automatically when you do not pass a connection string; results come back as a markdown table with row counts and errors carry hints
  • Schema — read-resource for a table's columns, types, primary keys, indexes and foreign keys; list-resources for every table and view
  • Tenants — list-tenants, create-tenant, delete-tenant

Requirements

A Nile API key and workspace slug, set as NILE_API_KEY and NILE_WORKSPACE_SLUG — create the key from your workspace's Security settings. Install @niledatabase/nile-mcp-server with npm (the package ships a built dist/index.js), then register that file with node in Claude Desktop or Cursor, passing those two variables to it. Stdio is the default; set MCP_SERVER_MODE=sse to serve over HTTP instead, with an events endpoint at /sse and commands posted to /messages. MIT.

Setup effort

One command plus a key — npm install @niledatabase/nile-mcp-server, then supply credentials