DevDb is a lightweight VS Code extension that automatically connects to your databases and provides powerful features to aid development and debugging. It supports multiple database types and integrates seamlessly with various frameworks and development environments.
DevDb is available through the Visual Studio Code Marketplace. You can install it in several ways:
code --install-extension damms005.devdb
DevDb offers two ways to connect to your databases:
For supported environments, DevDb automatically discovers and connects to your database without any manual configuration:
If your environment isn't supported for auto-discovery, create a .devdbrc
file in your project root:
[
{
"name": "My MySQL database",
"type": "mysql",
"host": "127.0.0.1",
"port": "3306",
"username": "root",
"password": "12345",
"database": "test"
},
{
"type": "sqlite",
"path": "/path/to/database.sqlite"
}
]
DevDb provides helpful snippets to create configurations quickly:
devdb mysql
for MySQL templatedevdb postgres
for PostgreSQL templatedevdb sqlite
for SQLite templatedevdb mssql
for Microsoft SQL Server templatedevdb mariadb
for MariaDB templateRemember to add
.devdbrc
to your.gitignore
file to protect sensitive information.
Cmd+K Cmd+D
(Mac) or Ctrl+K Ctrl+D
(Windows/Linux)Cmd+K Cmd+G
(Mac) or Ctrl+K Ctrl+G
(Windows/Linux)Cmd+Click
(Mac) or Ctrl+Click
(Windows/Linux) on table nameCmd+Click
(Mac) or Ctrl+Click
(Windows/Linux) on the valueCmd+Z
(Mac) or Ctrl+Z
(Windows/Linux)Cmd+Y
(Mac) or Ctrl+Y
(Windows/Linux)Cmd+S
(Mac) or Ctrl+S
(Windows/Linux)DevDb can provide database connections to MCP clients like Cursor, Windsurf, etc.:
.vscode/mcp.json
or windsurf/mcp_config.json
)Your AI-powered IDE should now be able to access your database information.
Right-click on any table name/model/entity reference in your code to open it directly in DevDb.
Export your table data as:
Data can be copied to clipboard or saved to a file.
DevDb provides a custom URI handler to open specific tables from external links:
vscode://devdb/open/table?connectionId=123&database=main&table=users&workspace=...
This allows integration with other tools or creation of shortcuts to frequently accessed tables.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "devdb" '{"command":"code","args":["--open-url","vscode://damms005.devdb/mcp/server"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"devdb": {
"command": "code",
"args": [
"--open-url",
"vscode://damms005.devdb/mcp/server"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"devdb": {
"command": "code",
"args": [
"--open-url",
"vscode://damms005.devdb/mcp/server"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect