# Grantex

> Grantex is an open-source MCP server. OAuth 2.0 for AI agents — scoped delegation tokens, audit trails, and revocation. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/mishrasanjeev/grantex
- **MCP Registry name:** io.github.mishrasanjeev/grantex
- **Listing updated:** 2026-11-13

## About

OAuth 2.0 for AI agents — scoped delegation tokens, audit trails, and revocation.

## Install

### Claude Code (Terminal)

```sh
claude mcp add grantex --env GRANTEX_API_KEY='<GRANTEX_API_KEY>' -- npx -y @grantex/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "grantex": {
      "command": "npx",
      "args": [
        "-y",
        "@grantex/mcp"
      ],
      "env": {
        "GRANTEX_API_KEY": "<GRANTEX_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "grantex": {
      "command": "npx",
      "args": [
        "-y",
        "@grantex/mcp"
      ],
      "env": {
        "GRANTEX_API_KEY": "<GRANTEX_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "grantex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@grantex/mcp"
      ],
      "env": {
        "GRANTEX_API_KEY": "<GRANTEX_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "grantex": {
      "command": "npx",
      "args": [
        "-y",
        "@grantex/mcp"
      ],
      "env": {
        "GRANTEX_API_KEY": "<GRANTEX_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "grantex": {
      "command": "npx",
      "args": [
        "-y",
        "@grantex/mcp"
      ],
      "env": {
        "GRANTEX_API_KEY": "<GRANTEX_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Grantex free?

Yes. Grantex is open source, so you can use and self-host it for free.

### How do I add Grantex to Claude Code?

Run this command in your terminal: claude mcp add grantex --env GRANTEX_API_KEY='<GRANTEX_API_KEY>' -- npx -y @grantex/mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/grantex
