Searchport

io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 7, 2026

Web, local, news, image, and video search through the Brave Search API.

概覽

AI 產生的概覽

Searchport 透過本機 stdio MCP 伺服器,為助理提供 Brave 搜尋的五類工具:網頁、在地、新聞、圖片與影片搜尋。

可以做什麼
  • 搜尋一般網頁索引,回傳標題、連結與摘要
  • 尋找附近的商家與地點,回傳地址、電話與評分等資訊
  • 查詢最新新聞報導,回傳來源、摘要與報導時間
  • 尋找圖片,回傳來源頁面與圖片直連網址
  • 尋找影片,回傳描述、長度與來源
適用情境
當助理需要即時的網頁、新聞、在地商家、圖片或影片搜尋結果,且你已有 Brave Search API 訂閱時適用。它以單一伺服器一致涵蓋這五種搜尋。
執行需求
需要 Brave Search API 訂閱金鑰,透過 BRAVE_API_KEY 環境變數提供,並以 X-Subscription-Token 標頭送往 API。以 npx(需 Node.js)或 Docker 映像在本機執行,且需能連線至 Brave Search API。僅限桌面環境。
安裝前請注意
需要付費的 Brave Search API 訂閱金鑰,缺少 BRAVE_API_KEY 時所有搜尋都會失敗。查詢內容與結果會傳送給第三方 Brave Search API。此伺服器僅讀取搜尋結果,不會寫入或刪除資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Searchport,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

searchport

searchport is one doorway to five kinds of Brave search. A single question can be asked against the general web index, local business listings, current news, images, or videos, and every answer comes back in the same shape: a title, the address it lives at, a short excerpt, and one extra line of detail that fits the kind — how long ago a story ran, how long a video plays, where a shop is and how it is rated. It runs from the command line or as an MCP server for agents.

A Brave Search API subscription key is required. Put it in the BRAVE_API_KEY environment variable; the key is sent to the API as the X-Subscription-Token header and never appears in output. When the variable is missing, every search fails with an error that names it.

Install

bash
npx @reneturcios/searchport web "trail running shoes"

Or run the container image:

bash
docker run -i -e BRAVE_API_KEY ghcr.io/cloudcorprecords/searchport

The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.

CLI

bash
export BRAVE_API_KEY="your subscription key"
# General web search; --count is results per page (max 20),# --offset pages forward (max 9)searchport web "composting basics"searchport web "composting basics" --count 5 --offset 1
# The other four kinds take the same query and --countsearchport local "bakery near the mission" --count 5searchport news "trail network vote"searchport images "ridge sunrise"searchport videos "trail running form"
# Machine-readable output for any kindsearchport web "composting basics" --json
searchport --version

Exit codes: 0 on success, 1 when a search fails (including a missing BRAVE_API_KEY or an API error), 2 for usage errors.

MCP server

One bin serves both faces. The mcp subcommand starts a stdio MCP server:

bash
npx -y @reneturcios/searchport mcp

MCP client configuration:

json
{  "mcpServers": {    "searchport": {      "command": "npx",      "args": ["-y", "@reneturcios/searchport", "mcp"],      "env": { "BRAVE_API_KEY": "your subscription key" }    }  }}

Tools

ToolInputWhat it returns
brave_web_searchquery (string, required), count (number, optional), offset (number, optional)Web results as a numbered text block: title, URL, and excerpt per result.
brave_local_searchquery (string, required), count (number, optional)Local listings: name, URL, and a detail line with address, phone, and rating when the API provides them.
brave_news_searchquery (string, required), count (number, optional)News stories: headline, URL, summary, and the story's age.
brave_image_searchquery (string, required), count (number, optional)Image results: title, source page URL, and the direct image URL.
brave_video_searchquery (string, required), count (number, optional)Video results: title, URL, description, and duration.

Counts are clamped to the API's per-page limit of 20 and offsets to its maximum of 9. An empty result set is reported as such, not as an error; a missing key or a failed API call is reported as a tool error.

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # node test runner over test/*.test.ts, no network (fake fetch fixtures)npm run dev     # run the CLI from source via tsx

License

MIT — see LICENSE.

來源:README.md,提交 197c7f3

工具

5

版本歷史

1
  1. v0.1.0最新Oct 31, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分