Skip to main content
Glama
claude-desktop.mdx1.7 kB
--- title: "Claude Desktop" --- <img src="/images/claude-desktop.webp" alt="Claude Desktop with DBHub" /> <Tabs> <Tab title="MacOS/Linux"> Edit `~/Library/Application Support/Claude/claude_desktop_config.json`: ```json ~/Library/Application Support/Claude/claude_desktop_config.json { "mcpServers": { "dbhub": { "command": "npx", "args": [ "@bytebase/dbhub", "--transport", "stdio", "--dsn", "postgres://user:password@localhost:5432/dbname" ] } } } ``` </Tab> <Tab title="Windows"> Edit `%APPDATA%\Claude\claude_desktop_config.json`: ```json { "mcpServers": { "dbhub": { "command": "npx", "args": [ "@bytebase/dbhub", "--transport", "stdio", "--dsn", "postgres://user:password@localhost:5432/dbname" ] } } } ``` </Tab> </Tabs> ## Demo Mode For testing, you can use the built-in demo database: ```json ~/Library/Application Support/Claude/claude_desktop_config.json { "mcpServers": { "dbhub": { "command": "npx", "args": [ "@bytebase/dbhub", "--transport", "stdio", "--demo" ] } } } ``` ## Troubleshooting - Verify your DSN connection string is correct - Check that the database is accessible from your machine - Review Claude Desktop logs: `~/Library/Logs/Claude/mcp*.log` (MacOS) ## References - [Claude Desktop MCP Documentation](https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bytebase/dbhub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server