other
Mysql MCP Gateway for AI Agents
Expose Mysql tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.
8 functions 5 read 3 write API key auth
Mysql MCP Gateway
Expose Mysql to MCP clients with `kosmokrator mcp:serve --integration=mysql`.
If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash kosmokrator mcp:gateway:install --integration=mysql --write=deny --json {
"mcpServers": {
"kosmokrator-mysql": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=mysql",
"--write=deny"
]
}
}
} Serve Manually
kosmokrator mcp:serve --integration=mysql --write=deny MCP Tool Names
KosmoKrator exposes integration tools through the gateway with stable names:
| MCP tool | Source function | Type |
|---|---|---|
integration__mysql__mysql_query | mysql.mysql_query | Read read |
integration__mysql__mysql_list_databases | mysql.mysql_list_databases | Read read |
integration__mysql__mysql_list_tables | mysql.mysql_list_tables | Read read |
integration__mysql__mysql_describe_table | mysql.mysql_describe_table | Read read |
integration__mysql__mysql_insert | mysql.mysql_insert | Write write |
integration__mysql__mysql_update | mysql.mysql_update | Write write |
integration__mysql__mysql_delete | mysql.mysql_delete | Write write |
integration__mysql__mysql_get_current_user | mysql.mysql_get_current_user | Read read |
Write Access
Start with --write=deny for read-only MCP clients. Use --write=ask or
--write=allow only when the client and workspace are trusted.