Sofya

co.sofya由 sofya.co 发布官方发布者v1.28.0更新于 Oct 29, 2026

Web search, fetch, extract, and research for AI agents. Markdown output + AI-synthesized answers.

已验证Streamable HTTP可网页运行网页搜索与抓取知识与记忆

概览

AI 生成的概览

Sofya 让 AI 助手进行网页搜索、抓取页面、AI 信息抽取和带引用的深度研究,输出干净的 Markdown 与综合答案。

可以做什么
  • 搜索网页并获取已抽取的页面正文,支持新闻主题、域名过滤、时效筛选和可选的 AI 综合答案
  • 将最多 10 个网址抓取为干净的 Markdown,也支持 PDF、DOCX、XLSX、PPTX、EPUB 等文件
  • 用 AI 从页面中抽取指定信息
  • 执行深度研究:把问题拆成子查询,并行阅读大量来源并综合出带引用的报告
  • 查询账户剩余额度,并获取充值付款链接(仅托管版)
适用场景
适合助手需要实时网页信息而非摘要片段的场景:读取并总结网址背后的文档、从页面中提取结构化事实,或就某个主题生成多来源带引用的报告。
运行要求
可通过 streamable HTTP 连接 mcp.sofya.co 远程端点,或用 Node.js 18+ 本地构建并以 stdio 运行。需要 Sofya 账户通过 OAuth 登录,或使用 Sofya API 密钥:托管版以 Authorization Bearer 令牌发送,本地版设为 SOFYA_API_KEY。需能访问 Sofya API。
安装前请注意
用量按额度计费:搜索 1-2 额度(加答案再加 2),抓取每个网址 1 额度,抽取 10 额度,研究 50 额度,频繁使用会产生费用。符合条件的 GitHub 账户每月有免费额度,其余按量付费。API 密钥属于机密,勿放入共享配置。查询内容和抓取的网址会发送到 Sofya 服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Sofya,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/co.sofya%2Fsofya/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "sofya": {
      "type": "http",
      "url": "https://mcp.sofya.co/mcp"
    }
  }
}

README

sofya-mcp

[Listed on mcpservers.org]

MCP server for Sofya - web search, fetch, extract, and deep research for AI agents, exposed over the Model Context Protocol.

Use it either way:

  • Hosted (no install): connect your client to https://mcp.sofya.co/mcp (streamable HTTP). Sign in with OAuth, or send your API key as a Bearer token. This is the server listed in the MCP registry as co.sofya/sofya.
  • Local: build this repo and run it over stdio. It is a thin wrapper around the Sofya REST API with the four core tools.

Eligible GitHub accounts (a year or older) get free monthly credits; everyone else pays as they go.

Tools

ToolWhat it doesCost
searchSearch the web and get extracted page content (not just snippets). Supports news topic, domain filters, freshness, and an optional AI-synthesized answer.1-2 credits (+2 for include_answer)
fetchFetch up to 10 URLs as clean markdown. Also handles PDF, DOCX, XLSX, PPTX, EPUB, and more.1 credit / URL
extractFetch a page and pull specific information from it using AI.10 credits
researchDecompose a question into sub-queries, read many sources in parallel, and synthesize a cited report.50 credits
get_balanceShow the account's remaining credits. Hosted server only.free
buy_creditsReturn a payment link for a credit top-up. It does not charge anything. Hosted server only.free

search, fetch, extract, research and get_balance are read-only.

Hosted server (VS Code / Copilot and others)

Point your client at the hosted endpoint. Clients with OAuth support (Claude, VS Code, Cursor, Cline and others) only need the URL and will ask you to sign in. To use an API key instead, get one at sofya.co (keys look like sofya_live_...) and send it as a Bearer token:

VS Code / GitHub Copilot (.vscode/mcp.json):

json
{  "servers": {    "sofya": {      "type": "http",      "url": "https://mcp.sofya.co/mcp",      "headers": { "Authorization": "Bearer sofya_live_..." }    }  }}

Claude Code, as a plugin (signs in with OAuth; plugin files in plugins/sofya):

bash
/plugin install sofya --marketplace sofya-co/sofya-mcp

Claude Code, with an API key:

bash
claude mcp add --transport http sofya https://mcp.sofya.co/mcp --header "Authorization: Bearer sofya_live_..."

Cursor (~/.cursor/mcp.json):

json
{  "mcpServers": {    "sofya": {      "url": "https://mcp.sofya.co/mcp",      "headers": { "Authorization": "Bearer sofya_live_..." }    }  }}

Cline:

bash
cline mcp install sofya --transport http https://mcp.sofya.co/mcp

Or in cline_mcp_settings.json:

json
{  "mcpServers": {    "sofya": {      "type": "streamableHttp",      "url": "https://mcp.sofya.co/mcp",      "headers": { "Authorization": "Bearer sofya_live_..." }    }  }}

Then ask your agent things like "search for the latest Node.js LTS release notes", "fetch this PDF and summarize it", or "research how the EU AI Act treats open-weight models". Full API docs: sofya.co/docs.

Local server

Prerequisites

  • Node.js 18+
  • A Sofya API key - get one at sofya.co (keys look like sofya_live_...)

Build

bash
git clone https://github.com/sofya-co/sofya-mcp.gitcd sofya-mcpnpm install          # also builds to build/index.js

Check it starts:

bash
SOFYA_API_KEY=sofya_live_... node build/index.js

In the examples below, replace /path/to/sofya-mcp with the folder you cloned.

Configuration

Claude Code
bash
claude mcp add sofya --env SOFYA_API_KEY=sofya_live_... -- node /path/to/sofya-mcp/build/index.js
Claude Desktop / Cursor / Windsurf / VS Code

Add this to your MCP config (e.g. claude_desktop_config.json, or .cursor/mcp.json):

json
{  "mcpServers": {    "sofya": {      "command": "node",      "args": ["/path/to/sofya-mcp/build/index.js"],      "env": {        "SOFYA_API_KEY": "sofya_live_..."      }    }  }}
Codex

Add it with the Codex CLI:

bash
codex mcp add sofya --env SOFYA_API_KEY=sofya_live_... -- node /path/to/sofya-mcp/build/index.js

Or edit ~/.codex/config.toml directly. Note Codex puts environment variables in a nested [mcp_servers.<name>.env] table:

toml
[mcp_servers.sofya]command = "node"args = ["/path/to/sofya-mcp/build/index.js"]
[mcp_servers.sofya.env]SOFYA_API_KEY = "sofya_live_..."

Then run /mcp inside Codex to confirm the server is connected.

Environment variables

VariableRequiredDefaultDescription
SOFYA_API_KEYyes-Your Sofya API key (sofya_live_...; older ay_live_... keys still work).
SOFYA_BASE_URLnohttps://sofya.coOverride the Sofya API base URL.

CLI flags --api-key and --base-url take precedence over the env vars. Run node build/index.js --list-tools to print the tool schemas, or --help for options.

Development

bash
npm run build        # compile TypeScript to build/npm run watch        # recompile on changenpm run inspector    # debug with @modelcontextprotocol/inspector

The server is a single file, src/index.ts. Tool definitions mirror Sofya's hosted MCP server exactly (same names, parameters, and defaults).

License

MIT - see LICENSE.

来源:README.md,提交 9403747

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

3
  1. v1.28.0最新Oct 29, 2026
  2. v1.27.1Oct 5, 2026
  3. v1.27.0Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分