npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-azure-sql

v1.2.1

Published

Enterprise-grade MCP server for Azure SQL with Azure AD auth, 34 tools, and tiered safety gates

Readme

mcp-azure-sql

Give any AI agent direct access to Azure SQL databases.

34 tools. Azure AD auth. Tiered safety gates. Zero dependencies. Written in Go.

GitHub License Go MCP

Works with Claude Code · Codex CLI · Gemini CLI · GitHub Copilot · Cursor · Windsurf · Cline · Continue · and any MCP client.

Install

npx -y mcp-azure-sql --version

That's it. No Go, no build tools, no dependencies. The npm package automatically downloads the pre-built Go binary for your platform.

Add to Your AI Agent

# Claude Code
claude mcp add --transport stdio --scope user azure-sql -- npx -y mcp-azure-sql

# Codex CLI
codex mcp add azure-sql -- npx -y mcp-azure-sql

# Gemini CLI
gemini mcp add -s user azure-sql npx -y mcp-azure-sql

For Cursor, Copilot, Windsurf, Cline, Continue, and Claude Desktop — add to your config file:

{
  "azure-sql": {
    "command": "npx",
    "args": ["-y", "mcp-azure-sql"],
    "env": {
      "AZURE_SQL_CONFIG_FILE": "~/.config/azure-sql-mcp/connections.json"
    }
  }
}

Configure Databases

Create ~/.config/azure-sql-mcp/connections.json:

{
  "defaults": { "auth": "azuread" },
  "connections": [
    {
      "name": "dev",
      "server": "myserver.database.windows.net",
      "database": "myapp-dev",
      "environment": "dev"
    },
    {
      "name": "prod",
      "server": "myserver.database.windows.net",
      "database": "myapp-prod",
      "environment": "prod",
      "prod": true
    }
  ]
}

Then: az login

34 Tools

| Category | Tools | |:---------|:------| | Query | query (read-only) · execute (write with safety gate) | | Schema | list_tables · describe_table · describe_indexes · describe_foreign_keys · search_columns · table_row_counts · search_objects · describe_triggers | | Code Objects | list_views · describe_view · list_stored_procs · describe_sproc · list_functions · describe_function | | Performance | explain_query · active_queries · long_running_queries · top_queries_by_cpu · wait_stats · blocking_chains · index_usage_stats · missing_indexes · table_statistics_health · database_size | | Connections | list_connections · test_connection · connection_info · add_connection | | Compliance | compare_tables · ef6_migration_status · permission_audit · hangfire_dashboard |

Safety

| | query | execute (dev) | execute (prod) | |:--|:--|:--|:--| | SELECT | Allowed | — | — | | INSERT / UPDATE / DELETE | Blocked | confirm=true | confirm=true | | DROP / TRUNCATE / ALTER | Blocked | confirm=true | Blocked |

Mark connections as production with "prod": true in the config file.

Authentication

| Mode | Use Case | |:--|:--| | azuread (default) | Azure SQL via az login, managed identity, or service principal | | sql | Legacy SQL Server with username/password | | connstr | Any custom connection string |

How It Works

This npm package is a thin wrapper around a pre-built Go binary. On npm install, it downloads the correct binary for your platform (Linux/macOS/Windows, amd64/arm64) from GitHub Releases. The binary runs as an MCP stdio server — your AI agent communicates with it via JSON-RPC 2.0 over stdin/stdout.

Why Go? ~5ms startup, 15MB memory, single binary with zero runtime dependencies. Read more.

Links

License

MIT — Albahub, LLC