Encyport

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

Search Wikipedia and read articles, summaries, sections, links, and coordinates.

概覽

AI 產生的概覽

唯讀的維基百科查詢伺服器:可搜尋條目,並取得全文、導言摘要、章節大綱、外部連結與地理座標。

可以做什麼
  • 依查詢詞搜尋維基百科條目,可限制回傳數量,結果包含標題、頁面 ID、摘要片段、字數與最後修訂時間
  • 讀取條目的完整純文字內容,或只取導言摘要
  • 依文件順序取得條目的章節大綱
  • 列出條目所指向的頁面,並標示命名空間與目標頁面是否存在
  • 取得條目記錄的地理座標,並標出主要座標
適用情境
適合需要從維基百科取得事實背景、定義或參考資料、又不想自行爬取網頁的情況,例如概述某個主題、整理條目結構或查詢某地座標。標題會跟隨重新導向,常見名稱或舊標題也能找到目前的條目。
執行需求
以 stdio 方式在本機執行,可透過 npx(npm 套件)或已發布的容器映像啟動。不需要帳號、API 金鑰、環境變數或請求標頭;它會呼叫 en.wikipedia.org 的公開維基百科 API,因此需要網路連線。僅支援桌面端。
安裝前請注意
僅供讀取:只做搜尋與內容取得,不會編輯維基百科。查詢詞與標題會傳送到公開的維基百科 API,所查內容會離開本機。內容來自英文維基百科,時效性與正確性取決於上游頁面;無法解析的標題會回傳錯誤而非空內容。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

encyport

encyport reads Wikipedia so people and agents do not have to scrape it. Give it a phrase and it finds matching articles; give it a title and it hands back the article text, just the lead summary, the section outline, the pages the article links to, or the coordinates recorded for the subject — all from the public Wikipedia APIs on en.wikipedia.org, with nothing to sign up for and no API key.

Install

bash
npx @reneturcios/encyport search "analytical engine"

Or run the container image:

bash
docker run -i ghcr.io/cloudcorprecords/encyport

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

CLI

Every command prints JSON.

bash
# Search for articlesencyport search Ada Lovelaceencyport search black holes --limit 5
# Read a page four ways, plus its coordinatesencyport article Ada Lovelaceencyport summary Ada Lovelaceencyport sections Ada Lovelaceencyport links Ada Lovelaceencyport coordinates Eiffel Tower
encyport --version

Titles and queries may contain spaces; everything after the command word is joined into one phrase. Exit codes: 0 on success, 1 when the lookup fails (a missing page or an upstream error, named in the message), 2 for usage errors.

MCP server

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

bash
npx -y @reneturcios/encyport mcp

MCP client configuration:

json
{  "mcpServers": {    "encyport": {      "command": "npx",      "args": ["-y", "@reneturcios/encyport", "mcp"]    }  }}

Tools

ToolInputWhat it returns
search_wikipediaquery (string, required), limit (integer, optional)Matching articles: title, page id, a cleaned text snippet, word count, and last-revision timestamp for each hit.
get_articletitle (string, required)The full plain-text content of the article.
get_summarytitle (string, required)The lead section of the article as plain text — the part most readers mean by "the summary".
get_sectionstitle (string, required)The article's section outline: section number, heading, heading level, and parse index, in document order.
get_linkstitle (string, required)Pages this article links to, each with its namespace and whether the target page exists.
get_coordinatestitle (string, required)Latitude/longitude pairs recorded for the page (empty when the subject has none), with the primary coordinate flagged.

Titles follow redirects, so a common name or an old title still lands on the current article. A title that does not resolve to a page is reported as an error rather than returning empty content.

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # node test runner over test/*.test.ts, no networknpm run dev     # run the CLI from source via tsx

The core takes an injectable fetch function, and the test suite drives it entirely with hand-written payloads shaped like real Wikipedia API responses — the tests never touch the network.

License

MIT — see LICENSE.

來源:README.md,提交 c9b0262

工具

6

search_wikipedia

Search Wikipedia articles by query.

輸入參數limitquery必填

get_article

Get the full plain-text content of a Wikipedia article.

輸入參數title必填

get_summary

Get a summary of a Wikipedia article.

輸入參數title必填

get_sections

Get the sections of a Wikipedia article.

輸入參數title必填

get_coordinates

Get the geographic coordinates of a Wikipedia article.

輸入參數title必填

版本歷史

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

評分

已滿足適用檢查項的 90%

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

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

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

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