Model Context Protocol (MCP) server for the Nile Database platform. Provides standardized tools for database, credential, region and SQL management via MCP, usable from Claude Desktop or Cursor.
https://github.com/niledatabase/nile-mcp-serverStop switching between your code editor, terminal, and database console just to create a table or check a schema. The Nile MCP Server connects your Nile databases directly to Claude Desktop and Cursor, letting you manage entire database lifecycles through natural language.
You're deep in a coding session when you need to create a new database, set up credentials, or run a quick schema check. Instead of breaking your flow to navigate through web consoles or remember API endpoints, you simply ask Claude: "Create a database called 'analytics' in us-west-2 and set up a users table with tenant isolation."
That's it. Database created, table structured, credentials generated, connection string ready.
Database Provisioning in Seconds
"Create a new database named 'user-analytics' in AWS_US_WEST_2 region"
Claude handles the API calls, waits for provisioning to complete, and returns your connection details. No dashboard switching, no waiting around wondering if it's ready.
Schema Management Through Conversation
"Show me the schema for the orders table in my-app, then add a status column"
Gets current schema, displays it as a formatted table, executes the ALTER statement, and confirms the change. All in one conversational flow.
Intelligent Query Building
"Find all users created this month where tenant is 'acme-corp' and they haven't logged in recently"
Claude builds the appropriate SQL with proper tenant isolation, executes it against your database, and formats results as readable tables.
Complete Database Lifecycle Management
Production-Ready SQL Execution
Seamless AI Integration
npm install @niledatabase/nile-mcp-server
npm run build
Add to your Claude Desktop config:
{
"mcpServers": {
"nile-database": {
"command": "node",
"args": ["/path/to/nile-mcp-server/dist/index.js"],
"env": {
"NILE_API_KEY": "your_api_key",
"NILE_WORKSPACE_SLUG": "your_workspace"
}
}
}
}
That's it. Claude now has direct access to your entire Nile infrastructure.
Multi-Tenant Architecture Made Simple
"Create tenant 'startup-xyz' in my SaaS database and show me all their users"
Handles tenant creation, switches context, runs isolated queries automatically.
Schema Evolution Through Natural Language
"I need to migrate the users table to include social login fields - what's the safest approach?"
Claude analyzes your current schema, suggests migration strategies, and can execute the changes step by step.
Database Health Monitoring
"Check the status of all my databases and show me any that need attention"
Polls database status across regions, formats health reports, and highlights any issues.
STDIO Mode (Default): Perfect for Claude Desktop and Cursor integration. Zero configuration beyond the initial setup.
SSE Mode: Real-time event streaming over HTTP. Ideal for custom integrations or when you need to monitor database operations live.
# Enable SSE mode
MCP_SERVER_MODE=sse npm start
# Connect and send commands
curl -N http://localhost:3000/sse
This isn't a prototype. You get comprehensive error handling, structured logging with daily rotation, full TypeScript type safety, and a complete test suite. The server handles connection pooling, credential management, and secure SSL connections automatically.
Whether you're prototyping a new feature or managing production databases, the Nile MCP Server eliminates the friction between thinking about your data and actually working with it. Your database infrastructure becomes as accessible as asking a question.