npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agentgate-mcp

v0.3.1

Published

MCP server that lets AI agents get API keys for any service via Google sign-in

Readme

AgentGate

MCP server that gives AI agents a browser with your Google session. The agent sees screenshots, decides what to click, and grabs API keys from any service.

How it works

You: "Get me a Twelve Labs API key"

Agent: get_or_create_key("twelvelabs")        → no key cached
Agent: open_browser("https://twelvelabs.io")   → sees screenshot
Agent: click("Sign in with Google")            → sees dashboard
Agent: goto("https://twelvelabs.io/api-keys")  → sees API keys page
Agent: click("Create API Key")                 → sees new key
Agent: extract_text(".api-key")                → reads the key
Agent: save_key("twelvelabs", "tl_key_abc...")  → cached for next time
Agent: close_browser()                         → done

The AI agent is the brain. AgentGate is the hands.

Install

npm install -g agentgate-mcp

Requires Node.js 23+.

Setup (one time)

agentgate login

Opens Chromium — sign into Google, close the browser. Done.

Add to Claude Code

agentgate setup

One command — registers the MCP server and auto-approves all tools so Claude never pauses for confirmation.

claude mcp add agentgate -- agentgate serve
claude config add allowedTools "mcp__agentgate__*"

MCP Tools

| Tool | What it does | |------|-------------| | get_or_create_key | Check if a key is cached for a service | | open_browser | Open browser with Google session, go to URL, return screenshot | | browser_action | Click, fill, scroll, extract text — returns screenshot after each action | | save_key | Store an API key the agent found | | close_browser | Close the browser | | list_my_keys | List all stored keys | | revoke_key | Delete a stored key |

open_browser

{ "url": "https://platform.openai.com/signup" }

Returns a screenshot of the page so the agent can see it.

browser_action

{ "action": "click", "selector": "text=Sign in with Google" }
{ "action": "fill", "selector": "input[name=email]", "value": "[email protected]" }
{ "action": "goto", "url": "https://platform.openai.com/api-keys" }
{ "action": "extract_text", "selector": ".api-key" }
{ "action": "scroll", "value": "500" }
{ "action": "press", "key": "Enter" }
{ "action": "wait", "selector": ".loaded", "ms": 5000 }
{ "action": "screenshot" }
{ "action": "extract_all_text" }

Every action returns a screenshot so the agent always sees what happened.

save_key

{ "service": "openai", "api_key": "sk-..." }

get_or_create_key

{ "service": "openai" }

Returns cached key or { "exists": false }.

Commands

| Command | Description | |---------|-------------| | agentgate login | Sign in with Google (opens browser) | | agentgate serve | Start MCP server | | agentgate doctor | Health check |

Security

  • Google session stays on your machine (~/.agentgate/browser-profile/)
  • API keys stored in local SQLite database
  • No cloud, no telemetry
  • The agent can only use YOUR authenticated session

Development

git clone https://github.com/junaid-mahmood/Agent-Gate.git
cd Agent-Gate
npm install
npx playwright install chromium
npm test

License

MIT