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.
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 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": {
"DEFAULT_QUERY_TIMEOUT_SECONDS": "30",
"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/ DEFAULT_QUERY_TIMEOUT_SECONDS=30 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_ACCEPT_ENCODING |
Default accept-encoding | identity |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_pydbcx_mcp-0.1.4.tar.gz.
File metadata
- Download URL: mseep_pydbcx_mcp-0.1.4.tar.gz
- Upload date:
- Size: 45.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7139b1dc3e51f335d3c0ca42a25a480794f8847ecad7bbacace15d2679f5dd7
|
|
| MD5 |
6629c180cf1064adedf90868dc2b64d6
|
|
| BLAKE2b-256 |
3a1ac3d381365b36e89960ee21844167beacc289880134a1974c46658f67275b
|
File details
Details for the file mseep_pydbcx_mcp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mseep_pydbcx_mcp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aa7b6b24b656987ec5f6c26f73f4399e626406cf289849f946efa6f15185e2a
|
|
| MD5 |
ee8f4faeda8947f56aa601eccd594a2c
|
|
| BLAKE2b-256 |
77791a9900d9b9b2b4cf90e6a825b11cb2455cf511d06bcc956a425bcd9a2073
|