Price Per TokenPrice Per Token
Nile MCP Server

Nile MCP Server

by niledatabase

0

About

Nile MCP Server integrates AI assistants with the Nile serverless PostgreSQL database platform, enabling complete database lifecycle management and SQL execution through a standardized interface. Key capabilities include: - **Database Management**: Create, list, retrieve details, and delete databases programmatically through natural language commands. - **SQL Query Execution**: Execute SQL queries directly against Nile databases with full PostgreSQL compatibility. - **Credential & Region Management**: Generate database credentials securely and provision databases across available geographical regions. - **MCP Protocol Implementation**: Full Model Context Protocol support with TypeScript-based type safety, Zod input validation, and comprehensive error handling.

README

Nile MCP Server Learn more ↗️ Discord 🔵 Website 🔵 Issues

[](https://smithery.ai/server/@niledatabase/nile-mcp-server)

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:

    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. For example: node_modules/@niledatabase/nile-mcp-server/dist/

    Manual Installation

    # Clone the repository
    git clone https://github.com/yourusername/nile-mcp-server.git
    cd nile-mcp-server

    Install dependencies

    npm install

    Build the project

    npm run build

    Other mcp package managers

    1. npx @michaellatman/mcp-get@latest install @niledatabase/nile-mcp-server

    Starting the Server

    There are several ways to start the server:

    1. Direct Node Execution:

       node dist/index.js
       
    2. Development Mode (with auto-rebuild):
       npm run dev
       

    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:

    [info] Starting Nile MCP Server...
    [info] Loading environment variables...
    [info] Environment variables loaded successfully
    [info] Creating server instance...
    [info] Tools initialized successfully
    [info] Setting up stdio transport...
    [info] Server started successfully
    

    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:

    NILE_API_KEY=your_api_key_here
    NILE_WORKSPACE_SLUG=your_workspace_slug
    

    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.

    Using with Claude Desktop

    Setup

    1. Install Claude Desktop if you haven't already 2. Build the project:

       npm run build
       
    3. Open Claude Desktop 4. Go to Settings > MCP Servers 5. Click "Add Server" 6. Add the following configuration:

    {
      "mcpServers": {
        "nile-database": {
          "command": "node",
          "args": [
            "/path/to/your/nile-mcp-server/dist/index.js"
          ],
          "env": {
            "NILE_API_KEY": "your_api_key_here",
            "NILE_WORKSPACE_SLUG": "your_workspace_slug"
          }
        }
      }
    }
    

    Replace:

  • /path/to/your/nile-mcp-server with the absolute path to your project directory
  • your_api_key_here with your Nile API key
  • your_workspace_slug with your Nile workspace slug
  • Using with Cursor

    Setup

    1. Install Cursor if you haven't already 2. Build the project:

       npm run build
       
    3. Open Cursor 4. Go to Settings (⌘,) > Features > MCP Servers 5. Click "Add New MCP Server" 6. Configure the server: - Name: nile-database (or any name you prefer) - Command:
         env NILE_API_KEY=your_key NILE_WORKSPACE_SLUG=your_workspace node /absolute/path/to/nile-mcp-server/dist/index.js
         
    Replace: - your_key with your Nile API key - your_workspace with your Nile workspace slug - /absolute/path/to with the actual path t

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81
    Saju Insights

    Saju Insights

    hjsh200219

    Saju Insights provides personalized Korean traditional Four Pillars of Destiny (Saju) fortune-telling based on birth data. It calculates destiny charts using the eight characters (four heavenly stems and four earthly branches) derived from birth year, month, day, and hour. Key capabilities include: - Birth chart calculation with automatic True Solar Time adjustment (Jintaeyangsi -30min correction) - Fortune analysis covering personality, career, wealth, health, and love prospects - Relationship compatibility analysis comparing two people's Saju charts - 10-year luck cycle (Daewon) predictions for long-term planning - Yongsin (favorable element) guidance on lucky colors, directions, and career paths - Lunar-solar calendar conversion supporting 1900-2200 with leap month handling - Daily fortune readings and seasonal power calculations - Multiple interpretation schools including Ziping, DTS, and modern methodologies

    Entertainment
    7 11