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 🙏

© 2025 – Pkg Stats / Ryan Hefner

o3-search-mcp

v0.0.9

Published

MCP server that enables AI agents to perform intelligent web searches using OpenAI's o3 model with natural language queries

Readme

o3-search-mcp (gpt-5, o4-mini 支持)

Verified on MseeP

一个MCP服务器,可以使用OpenAI的高端模型及其强大的Web搜索功能。 通过将其注册到任何AI编码代理,该代理可以自主地与OpenAI模型协商,以解决复杂的问题。

使用案例

(虽然为了与MCP名称匹配而称为o3,但您可以通过env指定gpt-5或o4-mini作为要使用的模型)

🐛 调试卡住时

o3的Web搜索可以广泛搜索GitHub issue和Stack Overflow等问题,因此解决小众问题的可能性大大增加。指示示例:

> 启动后出现以下错误,请修复。如果太难,请询问o3
> [粘贴错误消息]
> WebSocket连接不成功。请调试。如果不知道,请询问o3

📚 想要参考最新的库信息时

即使没有整理好的文档,也可以通过强大的Web搜索获得答案。指示示例:

> 我想将这个库升级到v2。请边咨询o3边进行
> 我被告知该库的此选项不存在。也许它已被删除。请询问o3应该指定什么来代替并替换它

🧩 处理复杂任务时

除了搜索之外,您还可以将其用作设计的讨论对象。指示示例:

> 我想创建一个可同时编辑的编辑器,请进行设计。并请o3进行设计审查,必要时进行讨论。

此外,由于它是作为MCP服务器提供的,因此即使您不发出指示,AI代理也可能会自行判断必要性并自主地与o3对话。这将极大地扩展其在自主运行中解决问题的范围!

安装

npx (推荐)

Claude Code:

$ claude mcp add o3 \
	-s user \  # 省略此行将在项目范围内安装
	-e OPENAI_MODEL=o3 \ # o4-mini, gpt-5 也可用
	-e OPENAI_API_KEY=your-api-key \
	-e SEARCH_CONTEXT_SIZE=medium \
	-e REASONING_EFFORT=medium \
	-e OPENAI_API_TIMEOUT=300000 \
	-e OPENAI_MAX_RETRIES=3 \
	-- npx o3-search-mcp

json:

{
  "mcpServers": {
    "o3-search": {
      "command": "npx",
      "args": ["o3-search-mcp"],
      "env": {
        "OPENAI_API_KEY": "your-api-key",
        // 可选: o3, o4-mini, gpt-5 (默认: o3)
        "OPENAI_MODEL": "o3",
        // 可选: low, medium, high (默认: medium)
        "SEARCH_CONTEXT_SIZE": "medium",
        "REASONING_EFFORT": "medium",
        // 可选: API超时(毫秒) (默认: 300000)
        "OPENAI_API_TIMEOUT": "300000",
        // 可选: 最大重试次数 (默认: 3)
        "OPENAI_MAX_RETRIES": "3"
      }
    }
  }
}

本地设置

如果您想下载代码并在本地运行:

git clone [email protected]:yoshiko-pg/o3-search-mcp.git
cd o3-search-mcp
pnpm install
pnpm build

Claude Code:

$ claude mcp add o3 \
	-s user \  # 省略此行将在项目范围内安装
	-e OPENAI_MODEL=o3 \ # o4-mini, gpt-5 也可用
	-e OPENAI_API_KEY=your-api-key \
	-e OPENAI_MODEL=o3 \
	-e SEARCH_CONTEXT_SIZE=medium \
	-e REASONING_EFFORT=medium \
	-e OPENAI_API_TIMEOUT=300000 \
	-e OPENAI_MAX_RETRIES=3 \
	-- node /path/to/o3-search-mcp/build/index.js

json:

{
  "mcpServers": {
    "o3-search": {
      "command": "node",
      "args": ["/path/to/o3-search-mcp/build/index.js"],
      "env": {
        "OPENAI_API_KEY": "your-api-key",
        // 可选: o3, o4-mini, gpt-5 (默认: o3)
        "OPENAI_MODEL": "o3",
        // 可选: low, medium, high (默认: medium)
        "SEARCH_CONTEXT_SIZE": "medium",
        "REASONING_EFFORT": "medium",
        // 可选: API超时(毫秒) (默认: 300000)
        "OPENAI_API_TIMEOUT": "300000",
        // 可选: 最大重试次数 (默认: 3)
        "OPENAI_MAX_RETRIES": "3"
      }
    }
  }
}

环境变量

| 环境变量名 | 选项 | 默认值 | 说明 | | --- | --- | --- | --- | | OPENAI_API_KEY | 必需 | - | OpenAI API 密钥 | | OPENAI_MODEL | 可选 | o3 | 使用的模型值: o3, o4-mini, gpt-5 | | SEARCH_CONTEXT_SIZE | 可选 | medium | 控制搜索上下文大小值: low, medium, high | | REASONING_EFFORT | 可选 | medium | 控制推理努力级别值: low, medium, high | | OPENAI_API_TIMEOUT | 可选 | 300000 | API请求超时(毫秒)示例: 300000 为5分钟 | | OPENAI_MAX_RETRIES | 可选 | 3 | 失败请求的最大重试次数SDK会在速率限制(429)、服务器错误(5xx)和连接错误时自动重试 |

注意事项

要从OpenAI API使用o3模型,您需要将您的层级提升到4级或验证您的组织。 如果您向此MCP注册了尚未启用o3的API密钥,则调用将导致错误。 参考: https://help.openai.com/en/articles/10362446-api-access-to-o1-o3-and-o4-models