DataGrip plugin that extends the built-in MCP server with database query and schema tools for AI assistants
{
"mcpServers": {
"datagrip-database-mcp": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
DataGrip plugin that extends the built-in MCP server with database query and schema tools for AI assistants
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 16 days ago. 1 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Manage Supabase projects — databases, auth, storage, and edge functions
An official Qdrant Model Context Protocol (MCP) server implementation
Query and manage PostgreSQL databases directly from AI assistants
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
MCP Security Weekly
Get CVE alerts and security updates for Datagrip Database Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A DataGrip plugin that extends its built-in MCP server with 6 database tools. AI assistants like Claude Code can query databases through DataGrip's existing connections -- SSH tunnels, SSL, and auth included -- with zero extra config.
./gradlew buildPlugin
The plugin zip is written to build/distributions/.
build/distributions/.Option A: Database tools only (recommended)
Use the filter proxy to expose only the 6 database tools. This strips DataGrip's built-in IDE tools from the MCP response, keeping your AI assistant's context clean.
Download the proxy script:
curl -o mcp-filter-proxy.py https://raw.githubusercontent.com/siddiqui-zeeshan/datagrip-database-mcp/main/mcp-filter-proxy.py
{
"mcpServers": {
"datagrip-db": {
"command": "python3",
"args": [
"/path/to/mcp-filter-proxy.py",
"/path/to/java",
"-classpath",
"/path/to/mcpserver-classpath",
"com.intellij.mcpserver.stdio.McpStdioRunnerKt"
],
"env": {
"IJ_MCP_SERVER_PORT": "<port>"
}
}
}
}
See Classpath and port below for how to find the correct values.
Option B: All tools (database + built-in IDE tools)
Connect directly to DataGrip's MCP server without filtering. This exposes all built-in IDE tools alongside the database tools.
{
"mcpServers": {
"datagrip": {
"command": "/path/to/java",
"args": [
"-classpath",
"/path/to/mcpserver-classpath",
"com.intellij.mcpserver.stdio.McpStdioRunnerKt"
],
"env": {
"IJ_MCP_SERVER_PORT": "<port>"
}
}
}
}
The MCP server runs via DataGrip's bundled JRE, not the DataGrip CLI. You need two things:
<DataGrip install>/Contents/jbr/Contents/Home/bin/java (macOS) or the equivalent on your OS.<DataGrip install>/Contents/plugins/mcpserver/lib/ and <DataGrip install>/Contents/lib/. See the global MCP setup section for details.IJ_MCP_SERVER_PORT to the port shown in DataGrip under Settings > Tools > MCP Server.| OS | DataGrip install path |
|----|------|
| macOS (Toolbox) | ~/Library/Application Support/JetBrains/Toolbox/apps/datagrip/ |
| macOS (standalone) | /Applications/DataGrip.app/ |
| Linux (Toolbox) | ~/.local/share/JetBrains/Toolbox/apps/datagrip/ |
| Windows (Toolbox) | %LOCALAPPDATA%\JetBrains\Toolbox\apps\datagrip\ |
The 6 database tools will appear automatically once the plugin is installed and the MCP server is enabled.
| Tool | Parameters | Returns |
|------|-----------|---------|
| list_datasources | (none) | Name, driver, connection status, and write-enabled flag for each datasource |
| get_schema | datasource, schema? | Tables with columns, types, primary keys, and nullability |
| run_query | datasource, sql, rowLimit?, timeout? | Columns, rows, row count, and whether results were truncated |
| explain_query | datasource, sql | Execution plan (auto-prefixes the correct EXPLAIN syntax for the DB driver) |
| get_table_info | datasource, table, schema? | Columns, types, primary keys, foreign keys, and indexes for a single table |
| search_schema | datasource, pattern | Tables and columns matching the pattern, with their types |
Datasources auto-conne