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

@iflow-mcp/baidu-search-mcp

v0.1.0

Published

百度文心搜索MCP服务器

Readme

Baidu Search MCP Server

这是一个用于 Model Context Protocol (MCP) 的百度搜索服务器实现,它允许AI助手使用百度文心API进行智能搜索。

功能特性

  • 支持使用百度文心API进行智能搜索
  • 支持多种模型选择(ernie-3.5-8k, ernie-4.0-8k, deepseek-r1, deepseek-v3)
  • 提供搜索结果和参考来源
  • 支持深度搜索和时效性过滤

安装

npm install @modelcontextprotocol/sdk axios

配置

  1. 首先需要获取百度文心API密钥:

  2. 设置环境变量:

export BAIDU_API_KEY=your_api_key_here

使用方法

作为独立服务器运行

node build/index.js

在MCP配置中使用

在你的MCP设置文件中添加以下配置:

{
  "mcpServers": {
    "baidu-search": {
      "command": "node",
      "args": ["/path/to/baidu-search-mcp/build/index.js"],
      "env": {
        "BAIDU_API_KEY": "your_api_key_here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

API

baidu_search

搜索工具支持以下参数:

  • query (必需): 搜索查询文本
  • model: 使用的模型名称
    • 可选值: "ernie-3.5-8k", "ernie-4.0-8k", "deepseek-r1", "deepseek-v3"
    • 默认值: "ernie-3.5-8k"
  • search_mode: 搜索模式
    • 可选值: "auto", "required", "disabled"
    • 默认值: "auto"
  • enable_deep_search: 是否开启深度搜索(默认:false)
  • search_recency_filter: 搜索结果的时效性范围
    • 可选值: "week", "month", "semiyear", "year"

开发

  1. 克隆仓库
  2. 安装依赖:
npm install
  1. 编译TypeScript:
npm run build

许可证

MIT License

贡献

欢迎提交 Issues 和 Pull Requests!

免责声明

本项目不对API密钥的使用承担责任,请确保遵守百度文心API的使用条款和政策。