Описание
MCP server to access Tsurugi
README
Model Context Protocol server to access Tsurugi.
Limitations
- Tsurugi 1.11.0 or later.
- Java21 or later.
Components
Tools
listTableNames- list table names.
getTableMetadata- get table metadata (table schema).
- parameter
tableName- table name (string, required)
query- execute SQL (select).
- parameter
sql- SQL (string, required)transaction_type-OCC,LTX,RTX. (string, default:RTX)cursor- To continue the previous query. (string)
- If there is a continuation,
nextCursoris returned.
update- execute SQL (insert, update, delete).
- parameter
sql- SQL (string, required)transaction_type-OCC,LTX. (string, default:OCC)write_preserve- write preserve table names. (string, required whentransaction_typeisLTX)
executeDdl- execute DDL (create, drop)
- parameter
sql- SQL (string, required)transaction_type-OCC,LTX. (string, default:OCC)
Resources
- table metadata
Prompts
tableList-prompt- Prompt to display the list of tables.
tableMetadata-prompt- Prompt to display the table metadata.
query-prompt- Prompt to display the table data.
Configuration
Usage with Claude Desktop
First, download the tsurugi-mcp-server jar file from release page.
To use this server with the Claude Desktop, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:
{
"mcpServers": {
"tsurugidb": {
"command": "java",
"args": [
"-jar",
"/path/to/tsurugi-mcp-server-all.jar",
"-c", "tcp://localhost:12345",
"--credentials", "/path/to/credential-file"
]
}
}
}
command- If the
javacommand is not included in the PATH, specify the full path. (e.g.,"C:/Program Files/Java/jdk-21/bin/java")
- If the
args- Specify the jar file by full path.
-cor--connection- the endpoint URL to connect Tsurugi. (required)--db-timeout- default timeout (in seconds) for accessing Tsurugi. If set to 0, there is no timeout.- Specify one of the following credentials.
"--user", "user"and"--password", "password""--auth-token", "auth token""--credentials", "/path/to/credential-file""--no-auth"- If none of these are specified, authentication will be performed in the following order of priority.
- If
TSURUGI_AUTH_TOKENis specified inenv, authenticate using it as the auth token. - If a default credential file (
USER_HOME/.tsurugidb/credentials.json) exists, use it for authentication. - Authenticate without authentication.
- If
- If you want to limit the tools used, add
--enable-tools. (e.g., for read-only access:"--enable-tools", "listTableNames, getTableMetadata, query") - If resources is not used, add
"--resource", "false". - If prompts is not used, add
"--prompt", "false".
How to build
cd tsurugi-mcp-server
./gradlew shadowJar
ls build/libs/
How to test
cd tsurugi-mcp-server
./gradlew test -Pdbtest.endpoint=tcp://localhost:12345 \
-Pdbtest.user=user \
-Pdbtest.password=password \
-Pdbtest.auth-token=token \
-Pdbtest.credentials=/path/to/credential-file
License
Установка Tsurugi
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/project-tsurugi/tsurugi-mcp-serverFAQ
Tsurugi MCP бесплатный?
Да, Tsurugi MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Tsurugi?
Нет, Tsurugi работает без API-ключей и переменных окружения.
Tsurugi — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Tsurugi в Claude Desktop, Claude Code или Cursor?
Открой Tsurugi на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Tsurugi with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
