Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Mcp Database Server

    MCP Database Server is a new MCP Server which helps connect with Sqlite, SqlServer and Posgresql Databases TypeScript-based implementation.

    214 stars
    TypeScript
    Updated Oct 19, 2025
    mcp-server
    posgresql
    sqlite
    sqlserver

    Table of Contents

    • Installation
    • Usage Options
    • Direct Usage with NPM Package
    • Local Development Setup
    • Usage
    • SQLite Database
    • SQL Server Database
    • PostgreSQL Database
    • MySQL Database
    • Standard Authentication
    • AWS IAM Authentication
    • Configuring Claude Desktop
    • Direct Usage Configuration
    • Local Development Configuration
    • Available Database Tools
    • Additional Documentation
    • Development
    • Requirements
    • License

    Table of Contents

    • Installation
    • Usage Options
    • Direct Usage with NPM Package
    • Local Development Setup
    • Usage
    • SQLite Database
    • SQL Server Database
    • PostgreSQL Database
    • MySQL Database
    • Standard Authentication
    • AWS IAM Authentication
    • Configuring Claude Desktop
    • Direct Usage Configuration
    • Local Development Configuration
    • Available Database Tools
    • Additional Documentation
    • Development
    • Requirements
    • License

    Documentation

    MseeP.ai Security Assessment Badge

    MCP Database Server

    This MCP (Model Context Protocol) server provides database access capabilities to Claude, supporting SQLite, SQL Server, PostgreSQL, and MySQL databases.

    Installation

    1. Clone the repository:

    code
    git clone https://github.com/executeautomation/mcp-database-server.git
    cd mcp-database-server

    2. Install dependencies:

    code
    npm install

    3. Build the project:

    code
    npm run build

    Usage Options

    There are two ways to use this MCP server with Claude:

    1. Direct usage: Install the package globally and use it directly

    2. Local development: Run from your local development environment

    Direct Usage with NPM Package

    The easiest way to use this MCP server is by installing it globally:

    bash
    npm install -g @executeautomation/database-server

    This allows you to use the server directly without building it locally.

    Local Development Setup

    If you want to modify the code or run from your local environment:

    1. Clone and build the repository as shown in the Installation section

    2. Run the server using the commands in the Usage section below

    Usage

    SQLite Database

    To use with an SQLite database:

    code
    node dist/src/index.js /path/to/your/database.db

    SQL Server Database

    To use with a SQL Server database:

    code
    node dist/src/index.js --sqlserver --server  --database  [--user  --password ]

    Required parameters:

    • --server: SQL Server host name or IP address
    • --database: Name of the database

    Optional parameters:

    • --user: Username for SQL Server authentication (if not provided, Windows Authentication will be used)
    • --password: Password for SQL Server authentication
    • --port: Port number (default: 1433)

    PostgreSQL Database

    To use with a PostgreSQL database:

    code
    node dist/src/index.js --postgresql --host  --database  [--user  --password ]

    Required parameters:

    • --host: PostgreSQL host name or IP address
    • --database: Name of the database

    Optional parameters:

    • --user: Username for PostgreSQL authentication
    • --password: Password for PostgreSQL authentication
    • --port: Port number (default: 5432)
    • --ssl: Enable SSL connection (true/false)
    • --connection-timeout: Connection timeout in milliseconds (default: 30000)

    MySQL Database

    Standard Authentication

    To use with a MySQL database:

    code
    node dist/src/index.js --mysql --host  --database  --port  [--user  --password ]

    Required parameters:

    • --host: MySQL host name or IP address
    • --database: Name of the database
    • --port: Port number (default: 3306)

    Optional parameters:

    • --user: Username for MySQL authentication
    • --password: Password for MySQL authentication
    • --ssl: Enable SSL connection (true/false or object)
    • --connection-timeout: Connection timeout in milliseconds (default: 30000)

    AWS IAM Authentication

    For Amazon RDS MySQL instances with IAM database authentication:

    Prerequisites:

    • AWS credentials must be configured (the RDS Signer uses the default credential provider chain)
    • Configure using one of these methods:
    • aws configure (uses default profile)
    • AWS_PROFILE=myprofile environment variable
    • AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables
    • IAM roles (if running on EC2)
    code
    node dist/src/index.js --mysql --aws-iam-auth --host  --database  --user  --aws-region

    Required parameters:

    • --host: RDS endpoint hostname
    • --database: Name of the database
    • --aws-iam-auth: Enable AWS IAM authentication
    • --user: AWS IAM username (also the database user)
    • --aws-region: AWS region where RDS instance is located

    Note: SSL is automatically enabled for AWS IAM authentication

    Configuring Claude Desktop

    Direct Usage Configuration

    If you installed the package globally, configure Claude Desktop with:

    json
    {
      "mcpServers": {
        "sqlite": {
          "command": "npx",
          "args": [
            "-y",
            "@executeautomation/database-server",
            "/path/to/your/database.db"
          ]
        },
        "sqlserver": {
          "command": "npx",
          "args": [
            "-y",
            "@executeautomation/database-server",
            "--sqlserver",
            "--server", "your-server-name",
            "--database", "your-database-name",
            "--user", "your-username",
            "--password", "your-password"
          ]
        },
        "postgresql": {
          "command": "npx",
          "args": [
            "-y",
            "@executeautomation/database-server",
            "--postgresql",
            "--host", "your-host-name",
            "--database", "your-database-name",
            "--user", "your-username",
            "--password", "your-password"
          ]
        },
        "mysql": {
          "command": "npx",
          "args": [
            "-y",
            "@executeautomation/database-server",
            "--mysql",
            "--host", "your-host-name",
            "--database", "your-database-name",
            "--port", "3306",
            "--user", "your-username",
            "--password", "your-password"
          ]
        },
        "mysql-aws": {
          "command": "npx",
          "args": [
            "-y",
            "@executeautomation/database-server",
            "--mysql",
            "--aws-iam-auth",
            "--host", "your-rds-endpoint.region.rds.amazonaws.com",
            "--database", "your-database-name",
            "--user", "your-aws-username",
            "--aws-region", "us-east-1"
          ]
        }
      }
    }

    Local Development Configuration

    For local development, configure Claude Desktop to use your locally built version:

    json
    {
      "mcpServers": {
        "sqlite": {
          "command": "node",
          "args": [
            "/absolute/path/to/mcp-database-server/dist/src/index.js", 
            "/path/to/your/database.db"
          ]
        },
        "sqlserver": {
          "command": "node",
          "args": [
            "/absolute/path/to/mcp-database-server/dist/src/index.js",
            "--sqlserver",
            "--server", "your-server-name",
            "--database", "your-database-name",
            "--user", "your-username",
            "--password", "your-password"
          ]
        },
        "postgresql": {
          "command": "node",
          "args": [
            "/absolute/path/to/mcp-database-server/dist/src/index.js",
            "--postgresql",
            "--host", "your-host-name",
            "--database", "your-database-name",
            "--user", "your-username",
            "--password", "your-password"
          ]
        },
        "mysql": {
          "command": "node",
          "args": [
            "/absolute/path/to/mcp-database-server/dist/src/index.js",
            "--mysql",
            "--host", "your-host-name",
            "--database", "your-database-name",
            "--port", "3306",
            "--user", "your-username",
            "--password", "your-password"
          ]
        },
        "mysql-aws": {
          "command": "node",
          "args": [
            "/absolute/path/to/mcp-database-server/dist/src/index.js",
            "--mysql",
            "--aws-iam-auth",
            "--host", "your-rds-endpoint.region.rds.amazonaws.com",
            "--database", "your-database-name",
            "--user", "your-aws-username",
            "--aws-region", "us-east-1"
          ]
        }
      }
    }

    The Claude Desktop configuration file is typically located at:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json

    Available Database Tools

    The MCP Database Server provides the following tools that Claude can use:

    ToolDescriptionRequired Parameters
    read_queryExecute SELECT queries to read dataquery: SQL SELECT statement
    write_queryExecute INSERT, UPDATE, or DELETE queriesquery: SQL modification statement
    create_tableCreate new tables in the databasequery: CREATE TABLE statement
    alter_tableModify existing table schemaquery: ALTER TABLE statement
    drop_tableRemove a table from the databasetable_name: Name of tableconfirm: Safety flag (must be true)
    list_tablesGet a list of all tablesNone
    describe_tableView schema information for a tabletable_name: Name of table
    export_queryExport query results as CSV/JSONquery: SQL SELECT statementformat: "csv" or "json"
    append_insightAdd a business insight to memoinsight: Text of insight
    list_insightsList all business insightsNone

    For practical examples of how to use these tools with Claude, see Usage Examples.

    Additional Documentation

    • SQL Server Setup Guide: Details on connecting to SQL Server databases
    • PostgreSQL Setup Guide: Details on connecting to PostgreSQL databases
    • Usage Examples: Example queries and commands to use with Claude

    Development

    To run the server in development mode:

    code
    npm run dev

    To watch for changes during development:

    code
    npm run watch

    Requirements

    • Node.js 18+
    • For SQL Server connectivity: SQL Server 2012 or later
    • For PostgreSQL connectivity: PostgreSQL 9.5 or later

    License

    MIT

    Similar MCP

    Based on tags & features

    • MC

      Mcp Open Library

      TypeScript·
      42
    • ME

      Metmuseum Mcp

      TypeScript·
      14
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • LI

      Liveblocks Mcp Server

      TypeScript·
      11

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • MC

      Mcp Open Library

      TypeScript·
      42
    • ME

      Metmuseum Mcp

      TypeScript·
      14
    • MC

      Mcp Ipfs

      TypeScript·
      11
    • LI

      Liveblocks Mcp Server

      TypeScript·
      11

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k