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 分