🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

grantd-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

grantd-mcp

Grantd MCP server — let your AI agent act on a user's behalf across third-party APIs (Gmail, GitHub, …) via OAuth-for-agents. A thin client of a Grantd broker; tokens are vaulted server-side and never reach the model.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
29
-3.33%
Maintainers
1
Weekly downloads
 
Created
Source

grantd-mcp

The Grantd MCP server — let your AI agent act on a user's behalf across third-party APIs (Gmail, GitHub, and more) without ever handling their OAuth tokens.

It's a thin MCP client of a Grantd broker: you connect a user once, and the agent calls provider APIs as that user. Tokens are vaulted server-side by the broker and never reach the model. When a user isn't connected, the tools return a ready-to-use connect link instead of failing.

Tools

  • list_providers — providers Grantd can connect (e.g. google, github).
  • check_connection — is an end-user connected to a provider? If not, returns a connect link.
  • create_connect_link — an authorization URL the end-user visits to connect an account.
  • call_provider — make an authorized API call to a provider on behalf of an end-user.

Usage

You need a running Grantd broker and a secret key (sk_…). See the main repo to self-host one in a couple of minutes.

Add it to an MCP client (Claude Code, Cursor, Claude Desktop):

{
  "mcpServers": {
    "grantd": {
      "command": "npx",
      "args": ["-y", "grantd-mcp"],
      "env": {
        "GRANTD_API_KEY": "sk_...",
        "GRANTD_BASE_URL": "https://your-broker.example.com",
        "GRANTD_END_USER": "user-123"
      }
    }
  }
}

Or with the Claude Code CLI:

claude mcp add grantd \
  --env GRANTD_API_KEY=sk_... \
  --env GRANTD_BASE_URL=https://your-broker.example.com \
  --env GRANTD_END_USER=user-123 \
  -- npx -y grantd-mcp

Environment

VariableRequiredDescription
GRANTD_API_KEYyesA Grantd secret key (sk_…). Treat it like a password.
GRANTD_BASE_URLnoBroker base URL (default http://localhost:8787).
GRANTD_END_USERnoDefault end-user id, so tools don't need it passed each call.

MIT licensed. Part of Grantd.

Keywords

mcp

FAQs

Package last updated on 09 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts