Nile
Created 5 months ago
A Model Context Protocol (MCP) server implementation for Nile database platform.
development
documentation
public
database
MCP
What is Nile?
An MCP server that talks to Nile - Postgres re-engineered for B2B apps. Manage and query databases, tenants, users, auth using LLMs
Documentation
Features
- Database Management: Create, list, get details, and delete databases
- Credential Management: Create and list database credentials
- Region Management: List available regions for database creation
- SQL Query Support: Execute SQL queries directly on Nile databases
- MCP Protocol Support: Full implementation of the Model Context Protocol
- Type Safety: Written in TypeScript with full type checking
- Error Handling: Comprehensive error handling and user-friendly error messages
- Test Coverage: Comprehensive test suite using Jest
- Environment Management: Automatic loading of environment variables from .env file
- Input Validation: Schema-based input validation using Zod
Installation
Install the stable version:
npm install @niledatabase/nile-mcp-server
For the latest alpha/preview version:
npm install @niledatabase/nile-mcp-server@alpha
This will install @niledatabase/nile-mcp-server in your node_modules folder.
Starting the Server
There are several ways to start the server:
- Direct Node Execution:
bash node dist/index.js - Development Mode (with auto-rebuild):
bash npm run dev
Configuration
Create a .env file in the root directory with your Nile credentials:
NILE_API_KEY=your_api_key_here
NILE_WORKSPACE_SLUG=your_workspace_slug
Server Config
{
"mcpServers": {
"nile-server": {
"command": "npx",
"args": [
"nile"
]
}
}
}
Links & Status
Project Info
Hosted
Featured
Created At:
Jul 02, 2025
Updated At:
Aug 07, 2025
Author:
Nile Database Team
Category:
official
License:
MIT License
Tags:
development
documentation
public