tsurugi
MCP server to access Tsurugi
claude mcp add --transport stdio project-tsurugi-tsurugi-mcp-server java -jar /path/to/tsurugi-mcp-server-all.jar -c tcp://localhost:12345 --credentials /path/to/credential-file \ --env TSURUGI_AUTH_TOKEN="authentication token (if using token-based auth; optional)"
How to use
This MCP server exposes the Tsurugi database tools over the Model Context Protocol, enabling you to list tables, fetch metadata, run queries, and perform updates and DDL against a running Tsurugi instance. You can use the provided prompts and tool endpoints (listTableNames, getTableMetadata, query, update, executeDdl) to interact with tsurugi’s data catalog and execute SQL statements. To connect, configure the mcpServers section in your MCP client (e.g., Claude Desktop) to point at the Java-based tsurugi-mcp-server-all.jar, supply the connection URL to your Tsuguri endpoint, and provide credentials as needed. Once connected, you can browse tables, fetch schemas, and execute both read and write operations through the MCP API, with support for transactions (OCC and LTX) and optional write-preserve behavior for multi-file/large operations.
How to install
Prerequisites:
- Java 21 or later installed and available on PATH
- Git and a Java build tool if you plan to build locally (optional; the README uses a prebuilt jar)
- Access to a running Tsurugi instance (tsurugidb) compatible with the MCP server
Installation steps:
- Download or obtain the tsurugi-mcp-server jar (tsurugi-mcp-server-all.jar) from the release page or build it locally using Gradle as described in the repository.
- Ensure Java is available in your PATH. Verify with: java -version
- If building from source, clone the repo and build:
git clone https://github.com/project-tsurugi/tsurugi-mcp-server
cd tsurugi-mcp-server
./gradlew shadowJar
The jar will be available under build/libs/ as tsurugi-mcp-server-all.jar
- Run the MCP server with the appropriate configuration, for example: java -jar /path/to/tsurugi-mcp-server-all.jar -c tcp://localhost:12345 --credentials /path/to/credential-file
- Configure your MCP client (e.g., Claude Desktop) to connect using the provided mcpServers configuration and ensure the target Tsuguri endpoint is reachable.
Additional notes
Notes and tips:
- The MCP server requires a running Tsurugi instance (tsurugidb) and may require authentication depending on your setup. If using Claude Desktop, you can limit tools via the --enable-tools option to enforce read-only access (e.g., enabling only listTableNames, getTableMetadata, and query).
- Environment variable TSURUGI_AUTH_TOKEN can be used to supply an auth token for Tsuguri if token-based auth is configured; otherwise, you can rely on credentials file or no-auth if supported by your setup.
- If you encounter connection issues, verify the connection URL (-c or --connection) and the credentials path. Ensure network access between the MCP server container/process and the Tsurugi instance.
- For production deployments, consider running the MCP server behind a reverse proxy or in a secure network with proper TLS/credentials management, and rotate credentials as needed.
- The supported operations include listTableNames, getTableMetadata, query (with optional transaction_type and cursor for pagination), update (with transactional modes OCC and LTX), and executeDdl for DDL operations.
Related MCP Servers
mcp-for-beginners
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
sonarqube
SonarQube MCP Server
wanaku
Wanaku MCP Router
WigAI
Bitwig Controller Extension that provides an MCP Server for AI Agent control
SchemaCrawler-AI
Free database schema discovery and comprehension tool
vertx
A Vert.x MCP Server built on top of MCP Java SDK