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

exa-gapped-mcp

v0.1.0

Published

A fork of exa-mcp-server that routes requests through GAP (Gated Agent Proxy) for secure credential management. Provides Exa AI web search and code context tools via MCP.

Readme

exa-gapped-mcp

A fork of exa-mcp-server that routes all Exa API requests through GAP (Gated Agent Proxy) for secure credential management.

What is GAP?

GAP is a credential injection proxy that sits between AI agents and APIs. Instead of giving agents direct access to API keys, GAP:

  • Stores credentials securely outside the agent's context
  • Injects credentials at the network layer when requests pass through the proxy
  • Provides audit logging of all API access
  • Allows credential rotation without updating agent configurations

Prerequisites

  1. GAP installed and running - See GAP setup instructions
  2. Exa plugin configured in GAP - With your Exa API credentials stored
  3. GAP token - Created via gap token create

Installation

npm install -g exa-gapped-mcp

Configuration

Environment Variables

Create a .env file in your working directory or set environment variables:

# Required: GAP token for proxy authentication
GAP_TOKEN=gap_xxxxxxxxxxxx

# Optional: GAP proxy URL (defaults to http://localhost:9443)
GAP_PROXY_URL=http://localhost:9443

The server automatically loads .env from the current working directory.

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "exa": {
      "command": "npx",
      "args": ["-y", "exa-gapped-mcp"],
      "env": {
        "GAP_TOKEN": "gap_xxxxxxxxxxxx"
      }
    }
  }
}

Claude Code

claude mcp add exa -e GAP_TOKEN=gap_xxxxxxxxxxxx -- npx -y exa-gapped-mcp

Or with a .env file in your project:

claude mcp add exa -- npx -y exa-gapped-mcp

Available Tools

By default, two tools are enabled:

  • web_search_exa - Real-time web search with content extraction
  • get_code_context_exa - Code snippets, documentation, and examples from GitHub repos and docs

Additional Tools

Enable more tools using the tools parameter:

{
  "mcpServers": {
    "exa": {
      "command": "npx",
      "args": [
        "-y",
        "exa-gapped-mcp",
        "tools=web_search_exa,get_code_context_exa,deep_search_exa,crawling_exa"
      ],
      "env": {
        "GAP_TOKEN": "gap_xxxxxxxxxxxx"
      }
    }
  }
}

All available tools:

  • web_search_exa - Web search (enabled by default)
  • get_code_context_exa - Code context search (enabled by default)
  • deep_search_exa - Deep search with query expansion
  • crawling_exa - Extract content from specific URLs
  • company_research_exa - Company research
  • linkedin_search_exa - LinkedIn search
  • deep_researcher_start - Start async research task
  • deep_researcher_check - Check research task status

How It Works

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Claude    │────▶│     GAP     │────▶│   Exa API   │
│   Agent     │     │   Proxy     │     │             │
└─────────────┘     └─────────────┘     └─────────────┘
                          │
                    Injects Exa
                    API credentials
  1. Agent makes request through this MCP server
  2. Request is routed through GAP proxy on localhost:9443
  3. GAP authenticates the request using the GAP_TOKEN
  4. GAP injects Exa API credentials into the request
  5. Request is forwarded to api.exa.ai

Differences from exa-mcp-server

| Feature | exa-mcp-server | exa-gapped-mcp | |---------|---------------|-------------| | Credential handling | Direct EXA_API_KEY | Via GAP proxy | | API key exposure | In env/config | Never exposed to agent | | Audit logging | None | Via GAP | | Setup complexity | Simple | Requires GAP |

Troubleshooting

"GAP_TOKEN is required"

Set the GAP_TOKEN environment variable or add it to your .env file.

"GAP CA certificate not found"

Ensure GAP is installed and initialized. The CA cert should be at ~/.config/gap/ca.crt.

Connection refused on port 9443

Start the GAP proxy server. Check status with gap status.

License

MIT

Credits