DevDb MCP Server

DevDb MCP Server

DevDb MCP Server

Category
访问服务器

README

DevDb

<p align="center"> <a href="https://github.com/damms005/devdb-vscode/actions"><img alt="Tests passing" src="https://img.shields.io/github/actions/workflow/status/damms005/devdb-vscode/deploy.yml?style=for-the-badge&logo=github&label=TESTS"></a> <a href="https://marketplace.visualstudio.com/items?itemName=damms005.devdb"><img alt="VS Code Marketplace Installs" src="https://img.shields.io/visual-studio-marketplace/i/damms005.devdb?style=for-the-badge&cacheSeconds=10800"></a> <a href="https://marketplace.visualstudio.com/items?itemName=damms005.devdb&ssr=false#review-details"><img alt="VS Code Marketplace Rating" src="https://img.shields.io/visual-studio-marketplace/r/damms005.devdb?style=for-the-badge&cacheSeconds=10800"></a> <a href="https://github.com/sponsors/damms005"><img alt="Sponsor" src="https://img.shields.io/badge/Sponsor-%E2%9D%A4-%23db61a2.svg?&logo=github&logoColor=white&labelColor=181717&style=for-the-badge"></a> </p>

<p align="center"> <a href="https://marketplace.visualstudio.com/items?itemName=damms005.devdb">VS Code Marketplace page</a> ⋅ <a href="https://open-vsx.org/extension/damms005/devdb">Open VSX Registry page</a> </p>

A lightweight VS Code extension that auto-loads your database and provides affordances from your database to aid development and debugging.

Built with 💖 for developers.

Featured In

<table> <tr><td> <a title="Laravel News" href="https://laravel-news.com/devdb"> <img alt="Laravel News" height="40" src="resources/featured/laravel-new.png" /></a> </td> <td> <a title="DDEV documentation" href="https://ddev.readthedocs.io/en/latest/users/usage/database-management/#database-guis"> <img alt="DDEV documentation" height="40" src="resources/featured/ddev.png" /> </a> </td> <td> <a title="Daily dev" href="https://app.daily.dev/posts/JAhlsLY2E"> <img alt="Daily dev" height="20" src="resources/featured/daily-dev.png" /> </a> </td> <td> <a title="TestDevTools" href="https://testdev.tools/dev-db"> <img alt="TestDevTools" height="40" src="resources/featured/test-dev-tools.png" /> </a> </td> </tr> </table>

Latest Features

  1. MCP Server for connecting to Cursor, Windsurf, etc.
  2. Quick table access: Press Cmd+K Cmd+G (Mac) or Ctrl+K Ctrl+G (Windows/Linux) to quickly open any table
  3. New zero-config support: applications running in DDEV
  4. New zero-config support: Adonis (Lucid ORM) - MySQL and PostgreSQL

Sponsors

We are genuinely grateful to the following sponsors of DevDb:

  • Traycer AI - A Powerful AI assistance, natively integrated into your VS Code workflow.

Features

  • MCP Server: Provide your database information to AI-powered IDEs and MCP clients like Cursor, Windsurf, etc.

  • Quick table open command: Press Cmd+K Cmd+G (Mac) or Ctrl+K Ctrl+G (Windows/Linux) to quickly open any table.

  • Zero-config Database Auto-discovery: Automatically discover and load your database ― no manual configuration required. Supports environments like DDEV, Adonis, Laravel, containerized setups (Laravel Sail), etc.

  • Database affordances for Local Development: Because of a deep understanding of your database schema, DevDb is able to provide affordances that aid development and debugging, such as one-click generation of Eloquent Model factories, etc.

  • Powerful IDE Integrations: DevDb nicely integrates your database with your IDE to provide very useful IDE-powered features like Context Menu & CodeLens Integrations directly in your editor, providing features like opening tables from code, invoking SQL query explainer when working on query optimization tasks, etc.

  • Rich Database Client with Intuitive UX: Dedicated database client view with one-click data browsing, inline editing, deletion, one-click reconnection, etc. Easily modify, set values to null, preview complex JSON data, all within a responsive interface.

  • Data Export: Export table data as well-formatted JSON or SQL INSERT statements copied to your clipboard or saved to file.

  • Comprehensive Multi-database Support: Seamlessly interface with SQLite, MySQL, MariaDB, PostgreSQL, and Microsoft SQL Server; with more to come!

  • Intuitive Configuration System: In environments where automatic zero-config is unavailable, DevDb provides quick snippets that produce well-formatted templates, as well as JSON Schema validation IntelliSense, which altogether makes creating configuration file for connecting to your database an awesome experience.

  • Integrated Framework & Tool Support: Tailored support for popular frameworks and tools including Laravel, DDEV, and Adonis ensures a seamless development experience. Need special feature(s) for your environment? We're listening!.

  • Cross-platform Compatibility: Engineered to perform consistently on Linux, macOS, and Windows, ensuring maximum flexibility as you can carry on your work across all these platforms.

Screenshots

image image

Requirements

OS/Platform Support

  • Linux *(Linux-x64, Linux-arm64, Linux-arm, Alpine-x64)
  • macOS (Darwin-x64, Darwin-arm64 Apple Silicon)
  • Windows (Win32-x64)

<small> Ubuntu 20.04 (including equivalent distors) and below are not supported because they have reached EOL and no longer supported runners in GitHub Actions. See https://github.com/actions/runner-images/issues/11101 </small>


Quick Start

[!NOTE] DevDb also provides several Language and Framework Integrations

UI Actions and Key Map

  • Cmd + K + D to toggle the view panel
  • Cmd + K + G to go to a table
  • Cmd + Click table name in the sidebar to open the table in the current tab
  • Cmd + Click on a database value to edit it
  • Click any value to preview it in the pane (useful for viewing prettified JSON string values)
  • The right pane offers options to view the current table schema or selected value
  • During edit sessions (activated during data edit/delete), the control box appears as shown in the screenshot
  • During edit sessions: Cmd + Z to undo changes, Cmd + Y to redo changes, and Cmd + S to save changes
  • Added new "Suggest New Feature" button

One-click Actions (Data Manipulation)

  • Click the trash icon on a table row to delete it
  • Click the Set null button on a database value to set the value to null

image

Supported Databases

Currently supported databases:

  • SQLite
  • MySQL
  • MariaDB
  • PostgreSQL
  • Microsoft SQL Server

Loading Databases

DevDb can automatically discover and load your database using connection details from your VS Code workspace (zero-config mode). When this zero-config auto-discovery isn't available, a configuration file option is provided.

1. Zero-config (Automatic Database Discovery)

No configuration file is needed when the workspace root contains any of the following:

  1. Applications managed by DDEV
  2. Adonis using default .env config for MySQL and PostgreSQL (with Lucid ORM)
  3. Laravel with default local SQLite database
  4. Laravel with default .env config for MySQL/MariaDB, PostgreSQL, and Microsoft SQL Server
  5. Containerized Laravel MySQL (Laravel Sail) with default .env/docker-compose.yml config (including dev containers support)

2. Config-based Database Loading

If zero-config support isn't available for your environment, create a .devdbrc file in your project root with your database connection details.

[!WARNING] Exclude the .devdbrc config file from version control by adding it to .gitignore. This protects sensitive information and allows team members to use different database configurations.

The configuration file should contain a single array of database connection objects. DevDb provides rich editing features for .devdbrc:

  • JSON Schema Validation: Automatic configuration validation
  • IntelliSense: Autocompletion for all fields, including type
  • Snippets: Quick configuration templates:
    • devdb mysql: MySQL configuration
    • devdb mariadb: MariaDB configuration
    • devdb postgres: PostgreSQL configuration
    • devdb sqlite: SQLite configuration
    • devdb mssql: Microsoft SQL Server configuration

Configuration File Example

[
	{
		"name": "My test MySQL database",
		"type": "mysql",
		"host": "127.0.0.1",
		"port": "3306",
		"username": "root",
		"password": "12345",
		"database": "test" // <-- the database to show in VS Code DevDb view
	},
	{
		"type": "sqlite",
		"path": "/path/to/database.sqlite"
	}
]

Tools and Framework Integrations

Context Menu Entry

Open any database table in DevDb by right-clicking its name/model/entity from the editor in any framework/programming language.

Example from a Node.js app

image

Laravel

Eloquent Model Code Lens

DevDb provides Code Lens features for:

  • Viewing the underlying table for the Eloquent model
  • Generating a factory for the model (automatically pre-filled with real data from the underlying table)

image

[!NOTE] Factory Generation is also available via the context menu

Query Explainer

The Query Explainer integrates with MySQL Visual Explain to optimize SQL queries by analyzing MySQL's query execution plan. Usage:

  1. Open a Laravel PHP file containing SQL query (Eloquent or DB facade)
  2. Select the SQL query to analyze
  3. Click the Explain query Code Lens or select Explain query from the context menu
  4. View the explanation in your browser or copy the URL

image

[!NOTE] VS Code multi-root workspaces support is in development. Track progress here.

<!-- TODO: update when completed -->

MCP Configuration

  1. As shown in screenshot, click the hammer icon to copy the MCP settings.
  2. In your IDE's MCP settings file (e.g. .vscode/mcp.json, windsurf/mcp_config.json, etc.), paste the copied JSON as one of the available MCP servers.

Your IDE/AI-tool should now be able to use your database details.

Copy MCP settings MCP Usage

URI Handler

DevDb provides a custom URI handler that allows you to open specific database tables directly from external applications or links. This is useful for integrating DevDb with other tools or creating shortcuts to frequently accessed tables.

URI Format

The URI format follows this pattern:

devdb://open/table?connectionId=123&database=main&table=users&workspace=...&authority=...

Parameters:

  • connectionId: The ID of the database connection
  • database: The database name
  • table: The table name to open
  • workspace: (Optional) The workspace path
  • authority: (Optional) The authority for the URI

Support

You can support the development of DevDb by contributing or by sponsoring the development. We appreciate your DevDb sponsorships with perks. Check the sponsorship page for available sponsorship options.

We also appreciate your support by saying 'thank you' to our existing sponsors by patronizing or subscribing to the amazing services they offer:

Contribution

[!IMPORTANT] Contributions are currently limited to the extension core code. UI code is not available for public contribution.

  1. Fork this repository and clone your fork locally
  2. Run bun install to install dependencies
  3. Make your contributions to the codebase
  4. Press F5 to launch the debugger and test changes locally
  5. Run test suites with bun run test-services and ensure all tests pass
  6. Push changes to your fork
  7. Open a PR to this repository
  8. Take your flowers! 💐🌺🌹

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选