upAPI
io.github.DevinoSolutions由 GitHub 账号 DevinoSolutions 发布v0.2.0更新于 Oct 24, 2026
All public upAPI operations as MCP tools: web scraping, search, screenshots, PDF, OCR and more.
发布方自己的服务:GetItDone
概览
upAPI 把托管 API 市场的各类操作(网页搜索、抓取、截图、PDF、OCR 等)封装为 MCP 工具,供助手直接调用。
- 可以做什么
- 按意图检索操作目录,并按 slug 执行任意操作,每次调用都会显示配额消耗
- 进行网页搜索与 SERP 查询,并查询社交资料、开发者工具数据、地理与金融数据
- 把网页转为 Markdown、截图、将 HTML 渲染为 PDF、提取 PDF 文本、执行 OCR 与转写
- 可选择把每个操作暴露为独立命名工具,或只暴露 11 个精选旗舰工具
- 失败以普通工具结果返回,并带有 RATE_LIMITED、INVALID_INPUT 等公开错误码
- 适用场景
- 适合希望用一个凭证和一份共享配额,让助手访问多种第三方数据与文件操作的场景,而不必逐个对接 API。适用于研究、抓取和文档转换任务,可从 Claude、IDE 或自托管代理中使用。
- 运行要求
- 可使用托管远程端点并通过 OAuth 登录 upAPI 账户,或通过 npx 运行本地 npm 包并设置 UPAPI_API_KEY 环境变量。可选设置 UPAPI_BASE_URL 与 UPAPI_TOOL_MODE。需要能访问 upAPI 网关的网络,调用会消耗每月配额。
安装
在 SourceWeft 中
- 打开 控制台中的 upAPI,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.DevinoSolutions%2Fupapi-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"upapi": {
"type": "http",
"url": "https://app.upapi.io/api/mcp"
}
}
}README
@upapi/mcp
upAPI (upapi.io) is an API marketplace and gateway. One API key and one pooled quota call every operation in the catalog — social media, search, maps, finance, developer tools, file and browser operations — over a single uniform HTTP contract, so integrating the tenth API costs no more than the first.
What it is not: not a workflow or orchestration engine, not an LLM provider, and not a local scraping library. Each call is one hosted operation on
api.upapi.io; chaining calls is up to your code or your agent.Canonical URL: https://upapi.io · Docs: https://upapi.io/docs · Agent index: https://upapi.io/llms.txt
Every public upAPI operation as an MCP tool — web search, SERP, social profiles, dev-tool lookups, geo/finance data — so an agent can call them directly.
There are two ways to connect, and they differ only in how a call is authenticated:
Both expose the same tools with the same schemas, and both bill the same quota.
Hosted — no install
Point any MCP client that supports remote servers at:
It will walk you through signing in to upAPI in a browser; there is no key to copy. With Claude Code:
Local — API key
Create a key by asking your agent to run create_api_key over the hosted connection, or on the API keys page, then:
Claude Desktop (claude_desktop_config.json), Cursor, and Windsurf take the same thing as JSON:
The key is never validated locally — only checked for presence, so a missing one fails immediately with a readable message instead of surfacing later as an unexplained 401 inside a tool call. Whether a key is real, expired, or over quota is answered at the gateway, the single place that answers it for every machine caller.
Tools
The hosted endpoint serves a compact table by default: two meta-tools plus a few always-on operations, a few kilobytes in total.
A tool table is re-sent as context on every turn, so one tool per operation means tens of
kilobytes of JSON Schema per turn and a table large enough to measurably degrade tool selection.
search_ops + call_op stays flat as the catalog grows. web-search.post, github-repo.get,
and wikipedia-article.get stay on the table as full tools so the common case needs no discovery
round-trip.
There are two other tables. ?tools=full gives every operation its own tool:
?tools=directory gives a curated set of 11 named tools for the flagship operations —
page-to-Markdown, screenshot, HTML-to-PDF, PDF text, OCR, transcription, GitHub repo, npm
package, Wikipedia, currency — with read tools and write tools listed separately
and no call_op. That is the shape AI-directory review criteria ask for (a catch-all dispatcher
with a target parameter is a rejection, and so is a listing that advertises scraped sources, which
is why the Maps trio and web search stay callable but are not listed there), and it is what the
Claude Desktop Extension ships with. ?tools=claude is the same shape over the 8 operations upAPI
computes itself (page-to-Markdown, screenshot, HTML-to-PDF, PDF text, OCR, transcription and its
result, text analysis) — the Claude connector listing. The local stdio server takes the same names in UPAPI_TOOL_MODE,
defaulting to compact — the same few-kilobyte shape the hosted endpoint defaults to. full
remains available (UPAPI_TOOL_MODE=full) as the rollback for a client already configured
against the one-tool-per-operation shape this server used to default to.
Every mode reaches exactly the same operations — the mode changes what is advertised, never
what is allowed. Every tool in every mode carries readOnlyHint, destructiveHint,
idempotentHint and openWorldHint, derived from what the worker does rather than from the
slug's verb suffix. Operations are named after their slug with . and - replaced by _
(web-search.post → web_search_post), and each advertises the operation's real JSON Schema
(formats, bounds, defaults, nullability), because that schema is generated from the worker's own
model and passed through untouched.
The hosted server reaches the whole public catalog in every mode; since 2026-09-26 it
withholds no category. The local (stdio) server and the Desktop Extension catch up in the next
release: the published 0.2.0 bundles 63 operations and still withholds Social Media and Utility in
directory mode.
directory mode only changes what is ADVERTISED — the
curated flagship set a public listing (like the Claude Desktop Extension) shows.
Descriptions carry the quota cost, so an agent can budget:
Search the web… upAPI operation
web-search.post(Search). Costs 25 units of monthly quota per call.
A failed operation comes back as a normal tool result with isError: true and text leading with
upAPI's public error code — RATE_LIMITED, INVALID_INPUT, UPSTREAM_UNREACHABLE. A rate limit
also states the wait in seconds. Nothing about a failing operation breaks the session.
No outputSchema is declared, deliberately: MCP requires a server that declares one to return
matching structuredContent, and these outputs describe live third-party payloads. One
unexpected null would turn a successful call into a protocol error.
Use it from Mastra
The tools work in a Mastra agent directly, without an MCP transport in between. @mastra/core and
@mastra/mcp are optional peer dependencies — install them yourself, and import the bindings
from the /mastra subpath. Nothing else in this package touches Mastra, which is what keeps a
plain npm i @upapi/mcp (and the desktop-extension bundle built from it) small.
Narrow the table with filter when an agent should only see part of the catalog:
createUpapiMcpServer — Code Mode by default
createUpapiMcpServer builds a Mastra MCPServer (@mastra/mcp, also an optional peer). Its
default tool surface is Code Mode: search_tools + execute_typescript instead of one tool
per operation — measured on the full 99-operation catalog, tools/list drops from 111,016
bytes to 1,069 bytes (99 tools → 2), because the table no longer grows with the catalog at all.
search_tools({ query? })finds the operations this connection can reach and returns them asdeclare function external_<name>(...)TypeScript signatures.execute_typescript({ code })runs a short TypeScript program in an isolated QuickJS sandbox (@mastra/quickjs, another optional peer — no native binary, no filesystem/network/process access beyond the injectedexternal_*functions). Batch several operations into one round trip withPromise.allinstead of one tool call each. Killed after 30 seconds. A program that computes for more than 1.5 seconds without awaiting anexternal_*call, or for more than 5 seconds in total across all such stretches, is stopped withCPU_BUDGET_EXCEEDED: ..., because the sandbox shares the Node event loop with every other request the process serves. Needsquickjs-emscripten0.31.0(the exact version@mastra/quickjs0.1.1 resolves) installed next to it. Both are loaded on the firstexecute_typescriptcall, so a server that never runs one (or uses thefullsurface) does not need them installed.
Every external_* call resolves to the exact same createUpapiTools(options) tool object the
full surface (below) calls — there is no second auth path. A denied or failed operation call
surfaces inside the sandbox as a thrown Error("<CODE>: <message>"), so the guest program's
own try/catch can inspect and branch on the code; arguments that fail an operation's input
schema throw INVALID_INPUT: <details> the same way. That is separate from a malformed
execute_typescript input, which fails the call itself before the sandbox ever starts.
Set MCP_TOOL_SURFACE (or pass surface) to change what is advertised:
instructions on the server carries the Code Mode contract automatically whenever a codemode
tool is on the table (codemode and both) — a model was not told to write TypeScript against
search_tools/execute_typescript otherwise.
Build your own server
caller is the only thing the tool table does not supply, which is what lets the same tools run
over different transports:
For a web-standard Request/Response server (Next.js route, Worker, Hono), import the
handler from the /http subpath — this is how app.upapi.io/api/mcp is built:
canExecute / canSearch are how a host projects its own authorization onto the table —
upAPI maps them to the access token's ops:execute and ops:read scopes. Both default to
true, so a host without a scope model is unaffected.
Prefer that subpath over the package root in a bundled or file-traced deployment: it reaches only
the MCP SDK, while the root entry also pulls the stdio server in. Neither reaches Mastra — the
bindings live behind @upapi/mcp/mastra precisely so that a build which never runs a Mastra agent
never sees @mastra/core.
Related
@upapi/sdk— the typed HTTP client, and the operation catalog this package's tool table is generated from- upapi.io/docs — operation reference
Where development happens
This repository is the published home of @upapi/mcp: it is what npm installs, and
issues and pull requests are welcome here. The tool table is derived from the
operation catalog in @upapi/sdk,
which is itself generated from upAPI’s private operation definitions and synced
automatically — so the set of tools changes upstream. The server, facade, error
mapping and tests in these files are hand-written and are the code to change.
来源:README.md,提交 86858e4
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分