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

tavily-mcp-manager

v0.2.3

Published

CLI and MCP wrapper for managing switchable Tavily API keys for AI coding agents.

Downloads

42

Readme

Tavily MCP Manager

A global CLI to manage multiple Tavily API keys and run tavily-mcp with switchable keys for AI coding agents.

Supported agents: OpenAI Codex · Claude Code · Gemini CLI · OpenCode

GitHub

📦 Repository: https://github.com/ngmkhoi/tavily-mcp-manager

If you find this tool useful, please consider giving it a ⭐ star on GitHub — it helps others discover the project!

Install

npm i -g tavily-mcp-manager

Quick Start

tavily-manager init
tavily-manager add tvly-... --alias personal
tavily-manager doctor

Print MCP config for your agent:

tavily-manager mcp config list      # show supported agents
tavily-manager mcp config codex     # Codex TOML
tavily-manager mcp config claude    # Claude Code JSON
tavily-manager mcp config gemini    # Gemini CLI JSON
tavily-manager mcp config opencode  # OpenCode JSON

CLI Commands

| Category | Commands | |----------|----------| | Key setup | init, add <key> [--alias], list, current, switch <slot\|alias> | | Key maintenance | key add, key rename, key remove | | Usage & rotation | usage [all], rotate [--dry-run] | | Diagnostics | doctor, mcp status, mcp config <agent> |

Multi-Agent MCP Setup

Codex

[mcp_servers.tavily]
command = "tavily-mcp-manager"
args = []

Claude Code

Add to ~/.claude.json or .mcp.json:

{
  "mcpServers": {
    "tavily": {
      "command": "tavily-mcp-manager",
      "args": []
    }
  }
}

Gemini CLI

Add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "tavily": {
      "command": "tavily-mcp-manager",
      "args": []
    }
  }
}

OpenCode

Add to ~/.config/opencode/opencode.json:

{
  "mcp": {
    "tavily": {
      "type": "local",
      "command": ["tavily-mcp-manager"],
      "enabled": true,
      "environment": {}
    }
  }
}

Auto-Rotation

Enable automatic key rotation before MCP startup:

TAVILY_AUTO_ROTATE=1 tavily-mcp-manager

Or in agent config:

[mcp_servers.tavily]
command = "tavily-mcp-manager"
args = []
env = { TAVILY_AUTO_ROTATE = "1" }

Config Paths

State lives under ~/.tavily-mcp-manager:

~/.tavily-mcp-manager/keys.env      # API key values
~/.tavily-mcp-manager/config.json   # active key, aliases, metadata

Environment Overrides

| Variable | Default | Description | |----------|---------|-------------| | TAVILY_HOME | ~/.tavily-mcp-manager | Manager home path | | TAVILY_CONFIG_FILE | — | Metadata config path | | TAVILY_KEYS_FILE | — | Secret key file path | | TAVILY_NPM_CACHE | /tmp/tavily-mcp-npm-cache | npm cache for MCP wrapper | | TAVILY_USAGE_WARNING_PERCENT | 5 | Low-credit warning threshold | | TAVILY_USAGE_STARTUP_CHECK | 1 | Set 0 to skip startup checks | | TAVILY_AUTO_ROTATE | 0 | Set 1 to rotate before startup | | TAVILY_ROTATE_THRESHOLD_PERCENT | — | Min remaining % for auto-rotate | | TAVILY_PROJECT_ID | — | Tavily project header for usage API |

Security

  • Keys stored in ~/.tavily-mcp-manager/keys.env, never in repo
  • CLI masks key values in output
  • Recommended permissions:
chmod 700 ~/.tavily-mcp-manager
chmod 600 ~/.tavily-mcp-manager/keys.env ~/.tavily-mcp-manager/config.json

Troubleshooting

tavily-manager doctor

Common fixes:

npm i -g tavily-mcp-manager
tavily-manager init
tavily-manager add tvly-...
chmod 700 ~/.tavily-mcp-manager
chmod 600 ~/.tavily-mcp-manager/keys.env ~/.tavily-mcp-manager/config.json

Disable noisy startup checks: TAVILY_USAGE_STARTUP_CHECK=0 tavily-mcp-manager

Development

src/
  cli/tavily-manager        # command handling
  mcp/tavily-mcp-manager    # MCP wrapper around tavily-mcp@latest
dist/
  cli.js                    # bin wrapper for tavily-manager
  mcp-wrapper.js            # bin wrapper for tavily-mcp-manager
npm run check