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

    Jdbc Mcp

    JDBC MCP modified from quarkus-mcp-servers

    0 stars
    Java
    Updated Oct 16, 2025

    Table of Contents

    • New Features
    • Docker Deployment
    • MCP SSE
    • Simple usage
    • Using an Environment File
    • Docker Compose for SSE
    • Basic Example
    • With Environment File
    • MCP SSE URL
    • MCP STDIO
    • Simple usage
    • Using an Environment File
    • Claude Desktop Configuration (STDIO)
    • Simple usage
    • Using an Environment File
    • Configuration
    • Environment Variables
    • Supported Database Types
    • Security Considerations
    • Using with LLMs
    • Write Query Security
    • Original Documentation
    • License
    • Acknowledgments

    Table of Contents

    • New Features
    • Docker Deployment
    • MCP SSE
    • Simple usage
    • Using an Environment File
    • Docker Compose for SSE
    • Basic Example
    • With Environment File
    • MCP SSE URL
    • MCP STDIO
    • Simple usage
    • Using an Environment File
    • Claude Desktop Configuration (STDIO)
    • Simple usage
    • Using an Environment File
    • Configuration
    • Environment Variables
    • Supported Database Types
    • Security Considerations
    • Using with LLMs
    • Write Query Security
    • Original Documentation
    • License
    • Acknowledgments

    Documentation

    JDBC-MCP - Database Access for AI Assistants

    Docker Hub

    GitHub License

    This is a fork of the Quarkus MCP JDBC Server with added features:

    • Docker deployment - Easily run the MCP SSE or MCP STDIO as a containerized application
    • Enhanced security - Write queries (INSERT, UPDATE, DELETE) are disabled by default and need to be explicitly enabled

    The Model Context Protocol (MCP) server enables AI assistants to interact with databases through JDBC connections, making it possible for LLMs to inspect, query, create, and modify database content.

    New Features

    Docker Deployment

    You can now run the JDBC-MCP server in a Docker container.

    MCP SSE

    Simple usage

    bash
    docker run -d --name jdbc-mcp \
      -p 8080:8080 \
      -e enable.write.sql=false \
      -e jdbc.user=db_user \
      -e jdbc.password=db_password \
      -e jdbc.url=jdbc:postgresql://host:port/database \
      guang1/jdbc-mcp:latest

    Using an Environment File

    Create a .env file:

    code
    enable.write.sql=false
    jdbc.user=db_user
    jdbc.password=db_password
    jdbc.url=jdbc:postgresql://host:port/database

    Then run:

    bash
    docker run -d --name jdbc-mcp \
      -p 8080:8080 \
      --env-file .env \
      guang1/jdbc-mcp:latest

    Docker Compose for SSE

    Basic Example

    yaml
    services:
      jdbc-mcp:
        container_name: jdbc-mcp
        ports:
          - 8080:8080
        environment:
          - enable.write.sql=false
          - jdbc.user=db_user
          - jdbc.password=db_password
          - jdbc.url=jdbc:postgresql://host:port/database
        restart: always
        image: guang1/jdbc-mcp:latest

    With Environment File

    yaml
    services:
      jdbc-mcp:
        container_name: jdbc-mcp
        ports:
          - 8080:8080
        env_file:
          - .env
        restart: always
        image: guang1/jdbc-mcp:latest

    MCP SSE URL

    http://localhost:8080/mcp/sse```
    ### MCP STDIO
    **Must** pass `quarkus.mcp.server.stdio.enabled=true`, `quarkus.log.console.enable=false` and `quarkus.log.console.stderr=false` environment variables with `-i` interactive option.
    #### Simple usage

    docker run --rm \

    -e enable.write.sql=false \

    -e jdbc.user=db_user \

    -e jdbc.password=db_password \

    -e jdbc.url=jdbc:postgresql://host:port/database \

    -e quarkus.mcp.server.stdio.enabled=true \

    -e quarkus.log.console.enable=false \

    -e quarkus.log.console.stderr=false \

    guang1/jdbc-mcp:latest

    code
    #### Using an Environment File

    docker run --rm

    --env-file .env \

    -e quarkus.mcp.server.stdio.enabled=true \

    -e quarkus.log.console.enable=false \

    -e quarkus.log.console.stderr=false \

    guang1/jdbc-mcp:latest

    code
    ### Claude Desktop Configuration (STDIO)
    To use the Docker version with Claude Desktop, add this to your `claude_desktop_config.json` or `server_config.json` file:
    #### Simple usage

    {

    "mcpServers": {

    "jdbc": {

    "command": "docker",

    "args": [

    "run",

    "--rm",

    "-e",

    "enable.write.sql=false",

    "-e",

    "jdbc.user=db_user",

    "-e",

    "jdbc.password=db_password",

    "-e",

    "jdbc.url=jdbc:postgresql://host:port/database",

    "-e",

    "quarkus.mcp.server.stdio.enabled=true",

    "-e",

    "quarkus.log.console.enable=false",

    "-e",

    "quarkus.log.console.stderr=false",

    "-i",

    "guang1/jdbc-mcp:latest"

    ]

    }

    }

    }

    code
    #### Using an Environment File

    {

    "mcpServers": {

    "jdbc": {

    "command": "docker",

    "args": [

    "run",

    "--rm",

    "--env-file",

    ".env",

    "-e",

    "quarkus.mcp.server.stdio.enabled=true",

    "-e",

    "quarkus.log.console.enable=false",

    "-e",

    "quarkus.log.console.stderr=false",

    "-i",

    "guang1/jdbc-mcp:latest"

    ]

    }

    }

    }

    code
    ## Configuration
    
    ### Environment Variables
    
    | Variable | Description | Default |
    |----------|-------------|---------|
    | `jdbc.url` | JDBC connection URL (required) | - |
    | `jdbc.user` | Database username | - |
    | `jdbc.password` | Database password | - |
    | `enable.write.sql` | Enable SQL operations that modify data | `false` |
    
    ### Supported Database Types
    
    This MCP server supports multiple database types through JDBC. For detailed information on supported JDBC variants, please see the [quarkus-mcp-servers/jdbc documentation](https://github.com/quarkiverse/quarkus-mcp-servers/blob/main/jdbc/README.md#supported-jdbc-variants).
    
    ## Security Considerations
    
    ⚠️ **Warning**: When `enable.write.sql` is set to `true`, the MCP server can execute SQL statements that modify data. Use with caution in production environments.
    
    Consider these best practices:
    - Use read-only database users when possible
    - Implement network-level access controls
    - Run in an isolated network environment
    
    ## Using with LLMs
    
    This MCP server provides a standardized API that Large Language Models can use to interact with your database. To connect your LLM:
    
    1. Configure the LLM to use the MCP server endpoint
    2. Define the capabilities you want to allow (read-only vs. read-write)
    3. Ensure your database schema is accessible to the MCP server
    ### Write Query Security
    
    By default, write operations (INSERT, UPDATE, DELETE) are disabled for security. To enable them:
    
    - When using Docker: add `-e enable.write.sql=true` as shown above
    
    ## Original Documentation
    
    For all other features, including supported databases, general usage, example databases, MCP components, and troubleshooting, please refer to the original repository documentation:
    
    [Quarkus MCP JDBC Server Documentation](https://github.com/quarkiverse/quarkus-mcp-servers/tree/main/jdbc)
    
    ## License
    
    This project is licensed under the Apache License 2.0.
    
    ## Acknowledgments
    
    - Original project: [Quarkiverse MCP Servers](https://github.com/quarkiverse/quarkus-mcp-servers)
    - Built with [Quarkus](https://quarkus.io/)
    - Containerized with [Docker](https://www.docker.com/)

    Similar MCP

    Based on tags & features

    • CH

      Chuk Mcp Linkedin

      Python00
    • MC

      Mcp Wave

      TypeScript00
    • GL

      Glm Mcp Server

      TypeScript·
      3
    • PU

      Pursuit Mcp

      Python00

    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

    • CH

      Chuk Mcp Linkedin

      Python00
    • MC

      Mcp Wave

      TypeScript00
    • GL

      Glm Mcp Server

      TypeScript·
      3
    • PU

      Pursuit Mcp

      Python00

    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