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

@shiharu/tavily-mcp

v0.2.18

Published

MCP server for advanced web search using Tavily

Readme

Tavily MCP Server (Custom Fork)

基于 tavily-ai/tavily-mcp 的定制分支,增加了 TAVILY_BASE_URL 支持,可将所有 API 请求重定向到自定义代理服务器,用于访问日志记录、审计或调试。

与上游的区别

  • 新增 TAVILY_BASE_URL 环境变量,可覆盖默认的 https://api.tavily.com 端点
  • 启动时会在 stderr 输出当前使用的 base URL(仅在非默认值时)
  • 其余功能与上游完全一致

部署方式

通过 npm 安装,开箱即用:

npx -y @shiharu/tavily-mcp@latest

MCP 客户端配置:

{
  "mcpServers": {
    "tavily": {
      "command": "npx",
      "args": ["-y", "@shiharu/tavily-mcp@latest"],
      "env": {
        "TAVILY_API_KEY": "tvly-xxxxx",
        "TAVILY_BASE_URL": "https://your-proxy.example.com"
      }
    }
  }
}

不设置 TAVILY_BASE_URL 时行为与官方版本完全一致。

环境变量

| 变量 | 必填 | 说明 | |------|------|------| | TAVILY_API_KEY | 是 | Tavily API 密钥,从 tavily.com 获取 | | TAVILY_BASE_URL | 否 | 自定义 API 基础地址,默认 https://api.tavily.com | | DEFAULT_PARAMETERS | 否 | JSON 格式的默认搜索参数 |

所有请求(search / extract / crawl / map / research)都会发往 TAVILY_BASE_URL 下对应的路径,例如 https://your-proxy.example.com/search

本地开发

git clone https://github.com/shiharuharu/tavily-mcp.git
cd tavily-mcp
git checkout custom/base-url-proxy
npm install && npm run build

同步上游更新

git fetch upstream
git merge upstream/main

可用工具

  • tavily_search — 实时网页搜索
  • tavily_extract — 从 URL 提取内容
  • tavily_crawl — 网站爬取
  • tavily_map — 网站结构映射
  • tavily_research — 综合研究

许可证

MIT(继承自上游)