tsurugi-python-mcp-tools
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
tsurugi-python-mcp-tools
tsurugi-python-mcp-tools は、Tsurugi RDBMS を MCP ツールとして利用するための Python 製 MCP サーバです。
Java版の tsurugi-mcp-server を参考に作成しています。
内部で tsurugi-dbapi を利用し、fastmcp により HTTP transport の MCP サーバを提供します。
主な機能
DDL 実行(
executeDdl:CREATE/DROP)DML 実行(
update:INSERT/UPDATE/DELETE)SELECT 実行(
query、WITH句許可、WITH RECURSIVEは非対応)テーブルメタデータ取得(
getTableMetadata)テーブル名一覧取得(
listTableNames)SQL 入力の基本バリデーションとエラーハンドリング(
ToolInputError/ToolExecutionError)
Related MCP server: mcp-database
動作要件
Python 3.10 以上
依存パッケージ:
fastmcp,tsurugi-dbapi接続先に Tsurugi RDBMS が起動していること
主な設定(環境変数)
TSURUGI_ENDPOINT(必須): 例tcp://localhost:12345TSURUGI_DEFAULT_TIMEOUT(任意、既定値30)TSURUGI_AUTH_TOKEN(任意)MCP_HOST(任意、既定値127.0.0.1)MCP_PORT(任意、既定値8000)MCP_PATH(任意、既定値/mcp)
起動方法
.\wenv\Scripts\python -m tsurugi_python_mcp_toolspip install 後は、コンソールコマンドでも起動できます。
tsurugi-mcp認証方式は起動オプションで明示指定できます。
--user <user> --password <password>--auth-token <auth-token>--credentials <path-to-credential-file>--no-auth
また、--enable-tools で実行可能ツールを制限でき、--resource / --prompt で resource/prompt 提供の有効・無効を制御できます。
mcp.jsonの例
{
"mcpServers": {
"tsurugi-python-mcp-tools": {
"type": "http",
"url": "http://localhost:8000/mcp"
}
}
}ライセンス
本プロジェクトは Apache License 2.0 の下で提供されています。
詳細は LICENSE ファイルを参照してください。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Related MCP Connectors
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
Read authorized Loam tables and supported external databases through a bounded MCP connection.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables SQL query execution and database structure browsing via MCP tools and resources.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceMCP server for connecting to databases (PostgreSQL, MySQL, SQL Server, Redis) enabling SQL queries, table exploration, and Redis key-value operations.1MIT
- AlicenseAqualityCmaintenanceA lightweight MCP server for relational databases, enabling dynamic connections to PostgreSQL and MySQL, SQL execution, and transaction control.71MIT
- FlicenseAqualityDmaintenanceMCP server that reads DBeaver database configurations and provides SQL execution via existing JDBC drivers — no extra driver downloads needed.3-