Zed
Add dbmcp to Zed as a context server in settings.json
Open your settings with zed: open settings file and add the server under context_servers:
{
"context_servers": {
"dbmcp": {
"command": "dbmcp",
"args": [],
"env": {
"DBMCP_DB_BACKEND": "mysql",
"DBMCP_DB_HOST": "127.0.0.1",
"DBMCP_DB_USER": "root",
"DBMCP_DB_PASSWORD": "secret",
"DBMCP_DB_NAME": "mydb"
}
}
}
}For a server you started with DBMCP_TRANSPORT=http, set url and headers instead of command. Without an Authorization header, Zed starts an OAuth flow.
{
"context_servers": {
"dbmcp": {
"url": "http://127.0.0.1:9001/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}