Skip to main content
Glama

webget-mcp

An MCP (Model Context Protocol) server that lets an MCP client (e.g. Claude Desktop) run read-only SQL queries against Increff Webget's database replicas, by reusing an authenticated browser session instead of requiring separate DB credentials.

Tools

  • webget_list_databases — lists the database server names available in Webget's SQL Query Editor (the same dropdown as https://saas.increff.com/webget/in/sql). Uses a bundled snapshot by default; pass refresh: true to re-scrape the live dropdown (needed right after a fresh install, since the bundled snapshot starts empty, or to pick up newly added servers).

  • webget_run_query — runs a single read-only SQL statement (SELECT, SHOW, EXPLAIN, DESCRIBE) against a given database server and returns the result as rows/columns. Statements containing write/DDL keywords (INSERT, UPDATE, DELETE, DROP, ALTER, TRUNCATE, CREATE, GRANT, REVOKE, REPLACE, MERGE) are rejected before they ever reach webget.

Query confirmation

Every query is shown to a human and requires explicit approval before it runs. The server tries MCP elicitation first (an in-chat confirmation prompt); if the connected client doesn't support that method, it falls back to a native macOS confirmation dialog (osascript display dialog) shown directly on the machine running the server. This is enforced server-side on every single call and does not depend on — and cannot be bypassed by — any client-side "always allow" setting.

Related MCP server: FastAPI Database MCP Server

Requirements

  • Node.js 20+ (an old node picked up from PATH, e.g. via a stale nvm shim, will fail to run the built ES2022/top-level-await output — point your MCP client config at an absolute path to a Node 20+ binary)

  • macOS (the confirmation-dialog fallback shells out to osascript)

  • A Webget/Increff SSO account

Setup

npm install
npm run build

One-time login

npm run login

This opens a real, visible Chromium window pointed at webget. Complete your company SSO login there. The session is saved to a local persistent browser profile at ~/.webget-mcp/ and reused by the MCP server for all future queries — you should only need to do this again after your session expires.

If the automated login gets blocked by bot detection, you can instead import an already-logged-in session's cookies directly from Chrome DevTools:

# DevTools -> Network tab -> pick a request to the target domain -> Headers
# -> Request Headers -> copy the full "cookie:" value
node dist/import-cookies.js saas.increff.com "<cookie header value>"
node dist/import-cookies.js account.increff.com "<cookie header value>"

Run once per domain; each run merges into the same stored session state.

Connect it to your MCP client

For Claude Desktop, add to claude_desktop_config.json:

{
  "mcpServers": {
    "webget": {
      "command": "/absolute/path/to/node",
      "args": ["/absolute/path/to/webget-mcp/dist/index.js"]
    }
  }
}

Use an absolute path for both command and args — Claude Desktop's default PATH resolution can pick up an unexpected Node version, and relative paths won't resolve correctly. After editing the config, fully quit and reopen Claude Desktop (a running instance can silently overwrite external edits to this file with its own in-memory copy).

Notes

  • Session/login state lives outside the repo at ~/.webget-mcp/ — it is never part of this project and should never be committed.

  • Results are limited only by webget's own API limits (roughly 1 MB / 10,000 rows per request). For larger exports, page through with ORDER BY <key> LIMIT n OFFSET m across multiple calls.

  • Only read-only statements are accepted; there is no way to run write or schema-changing SQL through this server.

Available Tools

2 tools
webget_list_databasesList webget database serversA
Read-onlyIdempotent

Lists the database server names available in Increff Webget's SQL Query Editor (the same dropdown as https://saas.increff.com/webget/in/sql). Use the returned name as the database argument to webget_run_query. Set refresh: true to re-scrape the live list instead of using the bundled snapshot (slower, but catches newly added servers, and is necessary right after a fresh install since the bundled snapshot starts empty).

Inputs: filter, refresh.

webget_run_queryRun a read-only SQL query via webgetA
Read-only

Executes a read-only SQL query against a webget database server (a read-replica MySQL DB, per company policy) and returns the result as rows/columns. Only SELECT-style statements are allowed; use webget_list_databases first to find the exact database name. Requires a prior login (run npm run login in the webget-mcp project once) and inherits webget's own row/size/time limits. Before running, the human is always shown the exact query and must explicitly allow it — this is enforced by the server itself and cannot be bypassed by an "always allow" client setting.

Inputs: query (required), database (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools serve clearly distinct purposes: one lists available databases, the other executes queries against them. There is a clear dependency and no overlap in functionality.

    Naming Consistency4/5

    Both tools follow the `webget_` prefix and use verb_noun style: `list_databases` and `run_query`. Minor deviation: `list_databases` uses a plural noun while `run_query` uses a singular noun, but the pattern is consistent and predictable.

    Tool Count3/5

    With only two tools, the set is minimal but appropriate for a focused purpose: listing databases and running queries. It feels slightly thin but is sufficient for the core functionality without unnecessary bloat.

    Completeness4/5

    The surface covers the primary workflows: discovering databases and executing read-only queries. Minor gaps exist such as no tool to inspect schema or query metadata, but these are not strictly necessary for the stated purpose.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides secure read-only SQL access to PostgreSQL and ClickHouse databases with built-in safety features like read-only enforcement, timeouts, and managed result files.
      63 PyPI
      1
      MIT
    • F
      license
      Not graded
      quality
      F
      maintenance
      Provides read-only SQL query access to Postgres and DuckDB databases via MCP tools, with extensive security hardening for public endpoints.
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables secure SQL query execution on MySQL databases with authentication and permission control, allowing users to explore database tables and run read-only queries.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables running read-only SQL queries and exploring DuckDB databases through MCP tools like listing tables, describing schemas, and fetching paginated data.
      -