New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@dbhawk/mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbhawk/mcp

MCP server bridging an AI assistant to the DBHawk /api/v2/mcp REST API (read-only datasource exploration + HawkAI).

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

@dbhawk/mcp

MCP server for DBHawk. It gives an AI assistant (Claude, VS Code, Cursor, or any MCP client) read-only access to the databases you already use in DBHawk: list your datasources, browse schemas, tables and columns, run read-only queries, and use HawkAI text-to-SQL.

All of DBHawk's access control and column masking apply. DBHawk rejects any statement that modifies data or schema, whatever your role.

Requirements

  • Node.js 18 or later
  • A DBHawk server with the MCP API enabled
  • An MCP API token: DBHawk → User Profile → API Token (your user needs ACCESS_TO_DATA)

Configuration

VariableRequiredDescription
DBHAWK_BASE_URLyesYour DBHawk URL, e.g. https://dbhawk.example.com (no trailing /api)
DBHAWK_TOKENyesYour personal MCP token (dbh_…)
DBHAWK_DEFAULT_DATASOURCEnoDatasource to use when a request doesn't name one

Setup

Claude Code

claude mcp add dbhawk \
  -e DBHAWK_BASE_URL=https://dbhawk.example.com \
  -e DBHAWK_TOKEN=dbh_your_token \
  -- npx -y @dbhawk/mcp

Claude Desktop and other MCP clients

Add this to your client's MCP configuration (for Claude Desktop, claude_desktop_config.json):

{
  "mcpServers": {
    "dbhawk": {
      "command": "npx",
      "args": ["-y", "@dbhawk/mcp"],
      "env": {
        "DBHAWK_BASE_URL": "https://dbhawk.example.com",
        "DBHAWK_TOKEN": "dbh_your_token"
      }
    }
  }
}

Claude Desktop users can also install the one-click extension from the releases page.

Tools

ToolWhat it does
list_datasourcesDatasources assigned to you
get_datasourceCapabilities of one datasource
list_catalogsCatalogs/databases (MSSQL, Snowflake)
list_schemasSchemas of a datasource
list_objectsTables, views and other objects in a schema
list_columnsColumns of a table or view
run_queryRun a read-only query (row-capped)
text_to_sqlHawkAI: turn a question into SQL
optimize_sqlHawkAI: suggestions to speed up a query
format_sqlPretty-print a SQL statement

More

Full documentation and troubleshooting: github.com/Datasparc/dbhawk-mcp-plugin

Keywords

mcp

FAQs

Package last updated on 23 Sep 2026

Related posts