Back to MCP docs

Local PAT (stdio mode)

Local stdio mode

For SDK apps and scripts, run the Drento MCP server locally over stdio with a personal access token.

  1. Generate a personal access token

    Open Settings → AI Connections → Generate new token. Copy the token — it's shown once.

  2. Install the server

    Run: npm install -g @drento/mcp-server

  3. Run in stdio mode

    Run: DRENTO_PAT=<your-token> drento-mcp --stdio

  4. Configure your MCP client

    Point your client's MCP config at the local drento-mcp executable.

You can revoke this connection any time from Settings → AI Connections.