Skip to main content

JDBCX MCP Server

Project description

JDBCX MCP Server

pydbcx-mcp is a Python implementation of MCP server for enabling communication with diverse data sources via JDBCX server.

Python Version MCP Protocol smithery badge

Installation

Start JDBCX server

Starts the JDBCX server container. Check out here for more information.

# Start the server
docker run --rm --name bridge -d -p8080:8080 jdbcx/jdbcx:main-nightly server
# Test if the server if ready
curl -v 'http://localhost:8080/config'
# Check server logs
docker logs --tail=100 -f bridge
# Shutdown the server
docker stop bridge

Configure MCP server

To install JDBCX MCP server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @jdbcx/pydbcx-mcp --client claude

Alternatively, add the MCP server into your JSON config file.

Development/Unpublished Server Configuration

{
  "mcpServers": {
    "jdbcx": {
      "command": "uv",
      "args": [
        "--directory",
        "</path/to/your/pydbcx-mcp/dir>",
        "run",
        "pydbcx-mcp"
      ],
      "env": {
        "JDBCX_SERVER_URL": "http://localhost:8080/",
        "JDBCX_SERVER_TOKEN": "",
        "MAX_ROWS_LIMIT": "5000"
      }
    }
  }
}

Published Server Configuration

{
  "mcpServers": {
    "jdbcx": {
      "command": "uvx",
      "args": ["pydbcx-mcp"],
      "env": {
        "DEFAULT_DATA_FORMAT": "md"
      }
    }
  }
}

Published SSE Server Configuration

{
  "mcpServers": {
    "jdbcx": {
      "url": "http://localhost:8080/sse"
    }
  }
}

Note: remember to start the SSE server first by JDBCX_SERVER_URL=http://localhost:8080/ uvx pydbcx-mcp --transport sse.

Configuration

Configure the server using environment variables:

Variable Description Default
JDBCX_LOG_LEVEL Log level DEBUG
JDBCX_SERVER_URL JDBCX server URL http://localhost:8080
JDBCX_SERVER_TOKEN JDBCX server access token None
DEFAULT_QUERY_TIMEOUT_SECONDS Default query timeout (seconds) 10
DEFAULT_DATA_FORMAT Default data format (md, jsonl, csv) csv
DEFAULT_ROWS_LIMIT Default number of rows can be returned 100
MAX_ROWS_LIMIT Maximum number of rows can be returned 1000
MCP_TRANSPORT MCP server transport (stdio, see) stdio
MCP_SERVER_HOST MCP server listening address 0.0.0.0
MCP_SERVER_PORT MCP server listening port 8080
MCP_SERVER_NAME MCP server name JDBCX MCP Server

Note: It is highly recommended to enable access token in JDBCX server and configure JDBCX_SERVER_TOKEN accordingly for security reason.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydbcx_mcp-0.1.1.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydbcx_mcp-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file pydbcx_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: pydbcx_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for pydbcx_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8a20f6fd51eb13a361f42f3e61cf2e25965e783c7a82a2feb9eaad7c6749a84f
MD5 f03d62474627df2b8c441a1fc17b2c38
BLAKE2b-256 1e2d26d1ca021ee9be1faff387c7985939e562ff3979fec69fe4e07c413f28c4

See more details on using hashes here.

File details

Details for the file pydbcx_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pydbcx_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for pydbcx_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad9235e657ef095736e7565bf6694f2c88809488cdff94d36827a6afa981dac
MD5 fdcc52f2cbd9d7d9087b3dfa0b1bc435
BLAKE2b-256 23262bb8e5d4fbf291ba1cc2c57e19a2368a59247b53b2e4be152d51edbe6af3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page