A Model Context Protocol (MCP) server implementation for Nile database platform. This server allows LLM applications to interact with Nile platform through a standardized interface.
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:
For the latest alpha/preview version:
This will install @niledatabase/nile-mcp-server in your node_modules folder. For example: node_modules/@niledatabase/nile-mcp-server/dist/
Manual Installation
Starting the Server
There are several ways to start the server:
Direct Node Execution:
Development Mode (with auto-rebuild):
The server will start and listen for MCP protocol messages. You should see startup logs indicating:
Environment variables loaded
Server instance created
Tools initialized
Transport connection established
To stop the server, press Ctrl+C.
Verifying the Server is Running
When the server starts successfully, you should see logs similar to:
If you see these logs, the server is ready to accept commands from Claude Desktop.
Configuration
Create a .env file in the root directory with your Nile credentials:
To create a Nile API key, log in to your Nile account, click Workspaces in the top-left, select your workspace, and navigate to the Security section in the left menu.
A Model Context Protocol (MCP) server implementation for Nile database platform. This server allows LLM applications to interact with Nile platform through a standardized interface.
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:
For the latest alpha/preview version:
This will install @niledatabase/nile-mcp-server in your node_modules folder. For example: node_modules/@niledatabase/nile-mcp-server/dist/
Manual Installation
Starting the Server
There are several ways to start the server:
Direct Node Execution:
Development Mode (with auto-rebuild):
The server will start and listen for MCP protocol messages. You should see startup logs indicating:
Environment variables loaded
Server instance created
Tools initialized
Transport connection established
To stop the server, press Ctrl+C.
Verifying the Server is Running
When the server starts successfully, you should see logs similar to:
If you see these logs, the server is ready to accept commands from Claude Desktop.
Configuration
Create a .env file in the root directory with your Nile credentials:
To create a Nile API key, log in to your Nile account, click Workspaces in the top-left, select your workspace, and navigate to the Security section in the left menu.