Token导航 LogoToken导航TokenDH.com
Open Custom Search API MCP Server logo
搜索检索stdio官方级别未说明来源级核验

Open Custom Search API MCP Server

MCP Server

open-custom-search-api-mcp-server

一个提供Google自定义搜索API访问的MCP服务器,支持配置搜索结果数量和API凭证的环境变量设置。

工具数

1

提示词数

0

GitHub Stars

0

资源数

0
搜索工具JavaScriptClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

elchika-inc

提供方

elchika-inc

最后核验

2026/5/17 20:22

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx open-custom-search-api-mcp-server

详细介绍

打开自定义搜索API MCP服务器

![license](https://github.com/naoto24kawa/open-custom-search-api-mcp-server/blob/main/LICENSE) ](https://www.npmjs.com/package/open-custom-search-api-mcp-server) ](https://www.npmjs.com/package/open-custom-search-api-mcp-server) ](https://github.com/naoto24kawa/open-custom-search-api-mcp-server)

一个模型上下文协议(MCP)服务器,提供对谷歌的自定义搜索API的访问。

特性

  • 谷歌搜索:使用Google自定义搜索API搜索网页
  • 可配置的结果限制(1-10个结果)
  • API凭据的环境变量配置
  • 全面的错误处理

安装

使用npx(推荐)

# Run directly without installation
npx open-custom-search-api-mcp-server

本地安装

npm install -g open-custom-search-api-mcp-server

先决条件

  1. 谷歌API密钥-从 谷歌云控制台
  2. 自定义搜索引擎ID-在以下位置创建一个 谷歌自定义搜索

用法

使用npx运行

npx open-custom-search-api-mcp-server

在本地运行

# After global installation
open-custom-search-api-mcp-server

可用工具

谷歌搜索

使用Google自定义搜索API搜索网页。

参数:

  • query (必填):搜索查询
  • limit (可选):返回的最大结果数(1-10,默认值:10)

例子:

{
  "name": "google_search",
  "arguments": {
    "query": "MCP server development",
    "limit": 5
  }
}

答复:

{
  "query": "MCP server development",
  "totalResults": "1000000",
  "searchTime": 0.123,
  "results": [
    {
      "title": "Example Result",
      "link": "https://example.com",
      "snippet": "This is an example search result...",
      "displayLink": "example.com"
    }
  ]
}

配置

MCP客户端配置

要将此服务器与Claude Desktop或其他MCP客户端一起使用,请将以下配置添加到您的MCP客户端设置中(例如。, .mcp.json 或克劳德桌面配置):

{
  "mcpServers": {
    "custom-search": {
      "command": "npx",
      "args": ["open-custom-search-api-mcp-server"],
      "env": {
        "GOOGLE_API_KEY": "your-google-api-key",
        "GOOGLE_SEARCH_ENGINE_ID": "your-custom-search-engine-id"
      }
    }
  }
}

对于本地开发或全球安装:

{
  "mcpServers": {
    "custom-search": {
      "command": "open-custom-search-api-mcp-server",
      "env": {
        "GOOGLE_API_KEY": "your-google-api-key",
        "GOOGLE_SEARCH_ENGINE_ID": "your-custom-search-engine-id"
      }
    }
  }
}

环境变量

服务器需要以下环境变量:

  • GOOGLE_API_KEY:来自Google云控制台的Google API密钥
  • GOOGLE_SEARCH_ENGINE_ID:您在谷歌自定义搜索中的自定义搜索引擎ID

建筑

所有搜索操作都在MCP服务器上本地执行,以尽量减少AI令牌的消耗。服务器处理:

  • 对Google自定义搜索API的HTTP/HTTPS请求
  • JSON响应解析和格式化
  • API故障的错误处理
  • 环境变量验证
  • 输入参数验证

许可证

麻省理工学院

目录标签

目录标签

搜索工具JavaScriptClaude自定义搜索本地部署MCP服务器GoogleAPI

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

open-custom-search-api-mcp-server

工具数量(toolCount,工具数)

1

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP