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

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取檔案與儲存開發者工具

概覽

AI 產生的概覽

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 閘道的網路,呼叫會消耗每月配額。
安裝前請注意
呼叫會消耗共用的每月配額,說明中標示每次操作的單位成本,可能用盡或產生費用。本機模式需要在設定中保存 API 金鑰。部分操作屬於寫入或開放世界操作,結果來自即時第三方來源。工具目錄會在上游更新,不同版本可用工具可能改變。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 upAPI,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

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:

Local (stdio)Hosted (HTTP)
Endpointnpx @upapi/mcphttps://app.upapi.io/api/mcp
Authyour upapi_ API keysign in with your upAPI account (OAuth)
Runson your machineon upAPI
Best forscripts, CI, self-hosted agentsClaude, IDEs, anything that speaks remote MCP

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:

https://app.upapi.io/api/mcp

It will walk you through signing in to upAPI in a browser; there is no key to copy. With Claude Code:

bash
claude mcp add --transport http upapi https://app.upapi.io/api/mcp

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:

bash
claude mcp add upapi -e UPAPI_API_KEY=upapi_xxx -- npx -y @upapi/mcp

Claude Desktop (claude_desktop_config.json), Cursor, and Windsurf take the same thing as JSON:

json
{  "mcpServers": {    "upapi": {      "command": "npx",      "args": ["-y", "@upapi/mcp"],      "env": { "UPAPI_API_KEY": "upapi_xxx" }    }  }}
Variable
UPAPI_API_KEYrequiredan upapi_ key
UPAPI_BASE_URLoptionalgateway origin, defaults to https://api.upapi.io
UPAPI_TOOL_MODEoptionalcompact (default), directory, claude or full — see Tools

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.

ToolWhat it does
search_opsFind operations by intent — returns slug, description, parameters, and quota cost
call_opRun one operation by slug: { "slug": "github-repo.get", "input": { … } }

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:

bash
claude mcp add --transport http upapi 'https://app.upapi.io/api/mcp?tools=full'

?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.

ts
import { Agent } from '@mastra/core/agent';import { createGatewayCaller } from '@upapi/mcp';import { createUpapiTools } from '@upapi/mcp/mastra';
const agent = new Agent({  name: 'researcher',  instructions: 'Research topics using upAPI.',  model: /* … */,  tools: createUpapiTools({    caller: createGatewayCaller({ apiKey: process.env.UPAPI_API_KEY! }),  }),});

Narrow the table with filter when an agent should only see part of the catalog:

ts
createUpapiTools({  caller,  filter: (op) => op.category === 'Search',});

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.

ts
import { createGatewayCaller } from '@upapi/mcp';import { createUpapiMcpServer } from '@upapi/mcp/mastra';
const server = createUpapiMcpServer({  caller: createGatewayCaller({ apiKey: process.env.UPAPI_API_KEY! }),});
await server.startStdio();
  • search_tools({ query? }) finds the operations this connection can reach and returns them as declare 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 injected external_* functions). Batch several operations into one round trip with Promise.all instead of one tool call each. Killed after 30 seconds. A program that computes for more than 1.5 seconds without awaiting an external_* call, or for more than 5 seconds in total across all such stretches, is stopped with CPU_BUDGET_EXCEEDED: ..., because the sandbox shares the Node event loop with every other request the process serves. Needs quickjs-emscripten 0.31.0 (the exact version @mastra/quickjs 0.1.1 resolves) installed next to it. Both are loaded on the first execute_typescript call, so a server that never runs one (or uses the full surface) 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:

ValueAdvertisesWhen to use it
codemode (default)search_tools + execute_typescriptAny model that can write a few lines of TypeScript
fullOne tool per operation — today's createUpapiTools tableRollback switch, or a client already built against it
bothThe union of the twoExercising or migrating off of one surface mid-transition
bash
MCP_TOOL_SURFACE=full node my-server.js   # one tool per operation, the pre-Code Mode shape
ts
createUpapiMcpServer({ caller, surface: 'full' }); // same thing, set in code instead of env

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:

ts
import { startUpapiStdioServer, type Caller } from '@upapi/mcp';
const caller: Caller = async (slug, input) => {  // resolve with the operation's output, or throw  // { code, message, status?, retryAfterSeconds? }};
await startUpapiStdioServer({ caller, mode: 'directory' });

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:

ts
import { handleUpapiMcpRequest, type Caller } from '@upapi/mcp/http';
await handleUpapiMcpRequest(request, {  caller,  // mode defaults to the request's own `?tools=` parameter (compact unless `full`/`directory`)  canExecute: true, // false hides every executable tool and refuses a call to one  canSearch: true, // false hides `search_ops`});

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
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v0.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Nowgetitdone 整合