D

Database Connections

Provides a unified TypeScript-based database server for seamlessly connecting to SQLite, PostgreSQL,...

90 views
1 installs
Updated Sep 9, 2025
Not audited
Provides a unified TypeScript-based database server for seamlessly connecting to SQLite, PostgreSQL, SQL Server, and MongoDB, enabling flexible database interactions through server-sent events and standard I/O communication modes.

Step-by-Step Instructions: Configuring ENV Values for MCP Database Server

  1. Decide Your Database Type

    Determine whether you will connect to SQLite, PostgreSQL, Microsoft SQL Server, or MongoDB. The environment variables you need depend on this choice.

  2. Collect Your Database Connection Details

    • For SQLite: Database file path.
    • For PostgreSQL: Host, port, database name, user, and password.
    • For SQL Server: Server address, port, database name, user, and password.
    • For MongoDB: Connection URI and database name.
  3. Fill in the Required ENV Values in the FastMCP Connection Interface

    Click the "Install Now" button, and in the connection form, fill in the following ENV values for your selected database:

    A. SQLite

    • MCP_SQLITE_FILENAME: Path to your SQLite database file (e.g., /path/to/database.db)
    • MCP_SQLITE_CREATE_IF_NOT_EXISTS: Usually true if you want the file to be created if it doesn’t exist

    B. PostgreSQL

    • MCP_POSTGRES_HOST: (e.g., localhost)
    • MCP_POSTGRES_PORT: (default is 5432)
    • MCP_POSTGRES_DATABASE: Your PostgreSQL database name
    • MCP_POSTGRES_USER: Your PostgreSQL username
    • MCP_POSTGRES_PASSWORD: Your PostgreSQL password
    • MCP_POSTGRES_SSL: Usually false unless your setup requires SSL

    C. Microsoft SQL Server

    • MCP_MSSQL_SERVER: Your SQL Server address (e.g., localhost)
    • MCP_MSSQL_PORT: (default: 1433)
    • MCP_MSSQL_DATABASE: Your SQL Server database name
    • MCP_MSSQL_USER: Your SQL Server username
    • MCP_MSSQL_PASSWORD: Your SQL Server password
    • MCP_MSSQL_ENCRYPT: Often true for secure connections
    • MCP_MSSQL_TRUST_SERVER_CERTIFICATE: Often true

    D. MongoDB

    • MCP_MONGODB_URI: MongoDB connection string (e.g., mongodb://localhost:27017)
    • MCP_MONGODB_DATABASE: Your MongoDB database name
    • MCP_MONGODB_MAX_POOL_SIZE: (Optional, default: 10)
    • MCP_MONGODB_USE_UNIFIED_TOPOLOGY: (Optional, usually true)
  4. Complete the Setup

    • After filling out the required ENV values, submit the form to finish installing the MCP Database Server integration.
    • You can now use the tools (connect-database, execute-query, etc.) with your configured database.

Note: All required connection details must be obtained from your database administrator or from your hosting provider’s dashboard/connection info page. If you are running the database yourself locally, you likely have these credentials already. No API keys or third-party service tokens are needed—only standard database connection parameters.

Quick Start

View on GitHub

More for Database

View All →

Similar MCP Servers

S

SQLite (Node.js)

Implements SQLite functionality in Node.js.

Database Developer Tools

Report Issue

Thank you! Your issue report has been submitted successfully.