Skip to main content
Glama

JDBCX MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_TRANSPORTNoMCP server transport (stdio, see)stdio
MAX_ROWS_LIMITNoMaximum number of rows can be returned1000
JDBCX_LOG_LEVELNoLog levelDEBUG
MCP_SERVER_HOSTNoMCP server listening address0.0.0.0
MCP_SERVER_NAMENoMCP server nameJDBCX MCP Server
MCP_SERVER_PORTNoMCP server listening port8080
JDBCX_SERVER_URLNoJDBCX server URLhttp://localhost:8080
DEFAULT_ROWS_LIMITNoDefault number of rows can be returned100
JDBCX_SERVER_TOKENNoJDBCX server access token
DEFAULT_DATA_FORMATNoDefault data format (md, jsonl, csv)csv
DEFAULT_ACCEPT_ENCODINGNoDefault accept-encodingidentity
DEFAULT_QUERY_TIMEOUT_SECONDSNoDefault query timeout (seconds)10

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
list_database_servers

List all available database servers configured in the JDBCX server.

Args: query_timeout_seconds (int, optional): Maximum time to wait for the request in seconds. Defaults to DEFAULT_QUERY_TIMEOUT_SECONDS. Returns: str: JSON string containing the list of database servers along with their corresponding descriptions
inspect_database_server

Get structural metadata for a specific database server, including its catalogs, schemas, and tables. May take minutes for large servers.

Args: database_server (str): The name of the database server to inspect query_timeout_seconds (int, optional): Maximum time to wait for the request in seconds. Defaults to DEFAULT_QUERY_TIMEOUT_SECONDS. Returns: str: JSON string containing the structural metadata of the specified database server, including its catalogs, schemas, and tables
query_database

Execute a SQL query against a specified database server and return formatted results. Maybe slow for complex queries.

Args: database_server (str): The name of the database server to query (must be registered) sql_query (str): The SQL query to execute (will be wrapped in a SELECT statement) query_timeout_seconds (int, optional): Maximum time in seconds to wait for query execution. Defaults to DEFAULT_QUERY_TIMEOUT_SECONDS. data_format (str, optional): Output format for results. Options: "md" - Markdown table format "jsonl" - JSON Lines format (one JSON object per row) "csv" - Comma-separated values with header row Defaults to DEFAULT_DATA_FORMAT. rows_limit (int, optional): Maximum number of rows to return. Defaults to DEFAULT_ROWS_LIMIT. Returns: str: Query results as a string in the specified format

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jdbcx/pydbcx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server