grantex — Claude Code MCP server: what it does, how to install
Authorization and delegation layer for AI agents that issues scoped, time-limited tokens with audit logging.
claude mcp add grantex -e GRANTEX_API_KEY=<GRANTEX_API_KEY> -- npx -y @grantex/mcpWhat grantex does
Grantex acts as a dedicated authorization protocol, bringing an OAuth 2.0 design to autonomous assistants. The MCP server connects models to this verification mechanism, linking an agent to a human or organizational principal. Through this connection, agents receive verifiable identities and explicit permissions for actions.
Standard MCP configurations handle tool connectivity, whereas Grantex enforces boundary checks on whether an agent may invoke a given tool. The protocol manages multi-agent handoffs and service-side validation. Each issued grant remains revocable and tracked.
Running @grantex/mcp strictly requires a configured GRANTEX_API_KEY environment variable. While the client SDKs and MCP packages follow the permissive Apache 2.0 terms, running the core Grantex platform inside a company requires written approval from Orchestrum Technologies LLP under its source-available license.
What it helps with
- Restrict autonomous agent operations using scoped, expiring grants
- Verify whether an assistant holds authority to act for a principal
- Maintain clear audit trails across multi-agent task chains
- Revoke tool permissions without invalidating primary user credentials
Example prompts for the agent
- Verify the delegation token before calling the merchant API
- Issue a scoped temporary grant for the subordinate purchasing agent
- Check the authorization audit log for the current task sequence
How to install grantex
Platform CLI
claude mcp add grantex -e GRANTEX_API_KEY=<GRANTEX_API_KEY> -- npx -y @grantex/mcpReplace <…> with your own values
Platform CLI
codex mcp add grantex --env GRANTEX_API_KEY=<GRANTEX_API_KEY> -- npx -y @grantex/mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"grantex": {
"command": "npx",
"args": [
"-y",
"@grantex/mcp"
],
"env": {
"GRANTEX_API_KEY": "<GRANTEX_API_KEY>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"grantex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@grantex/mcp"
],
"env": {
"GRANTEX_API_KEY": "<GRANTEX_API_KEY>"
}
}
}
}Replace <…> with your own values
Platform CLI
gemini mcp add -e GRANTEX_API_KEY=<GRANTEX_API_KEY> grantex npx -y @grantex/mcpReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about grantex
How to install grantex in Claude Code?
Run claude mcp add grantex -e GRANTEX_API_KEY=<GRANTEX_API_KEY> -- npx -y @grantex/mcp. Replace <GRANTEX_API_KEY> with your valid credential.
What is grantex?
It is an agent authorization layer that issues scoped delegation tokens. The server allows tools to confirm an agent's authority and log all invocations.
What license governs grantex?
Client tools and SDK packages are published under Apache 2.0. The platform server follows the Orchestrum Personal Use License 1.0, which requires enterprise approval for commercial use.