Synap

com.linkrra由 linkrra.com 發布官方發布者v1.2.0更新於 Oct 24, 2026

Open AI models through one OpenAI-compatible API: chat, live model list, prices and cost estimates.

已驗證Streamable HTTP可網頁執行金融AI 與機器學習

概覽

AI 產生的概覽

Synap(Linkrra)透過一個相容 OpenAI 的 API 提供開放模型,讓助理列出模型、查看價格、估算費用並執行對話補全。

可以做什麼
  • 列出 Synap 目前提供的模型,以及價格、上下文視窗與擅長領域
  • 讀取單一模型的完整目錄資料:價格、限制、支援參數、量化與資料保留政策
  • 在呼叫前依 token 數估算一次對話補全的費用
  • 在 Synap 模型上執行對話補全並取回回覆
適用情境
適合想透過 Linkrra 代管的開放模型產生文字或程式碼,或在花錢之前比較模型價格、為工作估算預算的情況。
執行需求
遠端 Streamable HTTP 端點 pool.linkrra.com/mcp,或透過 npx synap-mcp 使用本機 stdio 橋接(需 Node 18 以上)。只有對話補全需要 Synap API 金鑰,以 Authorization Bearer 標頭或 SYNAP_API_KEY 變數提供;三個唯讀工具不需金鑰。付費補全需要已儲值的 Synap 帳戶。
安裝前請注意
對話補全依提示與補全的 token 計費,從以信用卡或加密貨幣儲值的 Synap 餘額扣款;其餘三個工具免費。API 金鑰會以 Authorization 標頭原樣轉送到上游 API,應視為機密。說明稱不儲存提示與補全內容,但資料仍會傳送給第三方服務。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.linkrra%2Fsynap/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "synap": {
      "type": "http",
      "url": "https://pool.linkrra.com/mcp"
    }
  }
}

README

Synap MCP server

Synap by Linkrra as a Model Context Protocol server: open models behind one OpenAI-compatible API. Your agent can list the models we serve, read their prices and limits, estimate the cost of a job before running it, and run a chat completion.

There is one server, hosted at https://pool.linkrra.com/mcp (Streamable HTTP). It is the server behind com.linkrra/synap in the official MCP registry.

This repository has two parts:

  • routes.js is the deployed router itself, byte for byte.
  • bin/synap-mcp.js is the stdio transport (npx synap-mcp) for MCP hosts that launch a local command. It sends every message to the hosted server unchanged, so it always exposes the same tools as the hosted server.

Tools

ToolCostKey needed
synap_list_modelsfreeno
synap_get_modelfreeno
synap_estimate_costfreeno
synap_chat_completionbilled per prompt and completion tokenyes

Model ids are the ones synap_list_models returns. Pass synap-v1 and Synap picks the cheapest model that can do the job.

Connect

Hosted (Streamable HTTP), no install needed

json
{  "mcpServers": {    "synap": {      "type": "http",      "url": "https://pool.linkrra.com/mcp",      "headers": { "Authorization": "Bearer YOUR_SYNAP_API_KEY" }    }  }}

Local stdio (Claude Desktop, Cursor, Cline, Windsurf, Zed)

json
{  "mcpServers": {    "synap": {      "command": "npx",      "args": ["-y", "synap-mcp"],      "env": { "SYNAP_API_KEY": "YOUR_SYNAP_API_KEY" }    }  }}

Without a key, the three free tools still work. synap_chat_completion returns an error and nothing is charged.

VariableMeaning
SYNAP_API_KEYYour Synap key, sent as Authorization: Bearer. Get one at https://synap.linkrra.com.
SYNAP_MCP_URLOptional. Overrides the endpoint (default https://pool.linkrra.com/mcp).

Use it from goose

A ready-made goose custom-provider file lives in goose/. Download goose/linkrra.json into ~/.config/goose/custom_providers/, set LINKRRA_API_KEY, and pick Linkrra (Synap) as the provider. Full setup steps and the model table: goose/README.md.

Paying

  • API key (MCP and REST). Top up a Synap account by card or crypto. Each call is billed per token against that balance. MCP always uses this method.
  • x402, no account. An agent with a USDC wallet on Base can pay per call over plain HTTP at POST https://pool.linkrra.com/api/billing/x402/chat/completions. An unpaid request returns 402 with the payment terms. This route is part of the REST API, not an MCP tool. Its settlement is independently verified on PayAPI Market.

Protocol

The hosted server speaks both MCP eras:

  • 2026-07-28 (current): stateless. It implements server/discover and reads the per-request _meta protocol version. It checks that MCP-Protocol-Version, Mcp-Method and Mcp-Name match the request body. Results carry resultType, and list results also carry ttlMs and cacheScope.
  • 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05: the initialize handshake.

The bridge works with both. For a legacy client, it remembers the version agreed during initialize. For a 2026-07-28 client, it copies the _meta version into the HTTP headers that the Streamable HTTP transport requires.

The API behind it

https://pool.linkrra.com/v1 is an OpenAI-compatible API. On every self-hosted model it supports tool calling (tools, tool_choice) and structured outputs (response_format json_object / json_schema). Requests can be streamed or not. Prompts and completions are not stored.

Auth

The server passes your key through and nothing else. The key travels in the standard Authorization: Bearer header, the same way it would on a direct call to /v1/chat/completions. routes.js forwards that header untouched. The server never reads, stores or creates a key.

Run the server standalone

bash
npm install && npm start     # serves :8080/mcp

Develop

bash
npm test     # offline: a local mock checks the bridge's headers for both protocol eras

The stdio bridge needs Node 18 or later and has no dependencies.

License

Apache-2.0

來源:README.md,提交 67ad20b

工具

4

synap_chat_completion

Run a chat completion on Synap

Send a conversation to a model on Synap, Linkrra's OpenAI-compatible inference API, and get the model's reply. Use this when you need text generated, code written or a question answered by one of the open models Synap serves. This is the only tool here that costs money: it bills prompt and completion tokens to the Synap API key supplied as the Authorization: Bearer header on the MCP connection. With no key it returns an error and nothing is spent; a key with no balance returns insufficient_credits. Call synap_estimate_cost first if the price matters. Returns the standard OpenAI chat.completion JSON (choices[0].message.content holds the reply, usage holds token counts). The call is not streamed and keeps no memory between calls — send the full message history each time.

輸入參數model必填messages必填max_tokenstemperature

synap_list_models

List Synap models and prices

List the models Synap serves right now, each with its price per million tokens, context window and what it is good at. Use this to choose a model id before calling synap_chat_completion, or to compare prices. Free, read-only, no API key needed, and safe to call repeatedly; the list is live, so models can appear or go between calls. Returns {"object":"list","count":N,"data":[{id,name,capability,tier,context_tokens,max_output_tokens,pricing,data_policy}]}; pricing is USD per million prompt and completion tokens and is absent for the auto-routing ids ("synap-v1"), which bill at the price of the model they route to. For every field of one model use synap_get_model.

輸入參數query

synap_get_model

Get one Synap model in full

Return the complete catalogue record for one Synap model: pricing, context and output limits, supported parameters, quantisation, data-retention policy and readiness. Use this after synap_list_models when you need details the summary leaves out. Free, read-only and needs no API key. Returns the raw model object, or an error naming the id if Synap does not serve it.

輸入參數model必填

synap_estimate_cost

Estimate the cost of a Synap call

Work out what a chat completion would cost on Synap from token counts, using the live price list. Use this before synap_chat_completion when budget matters, or to compare models for a job. Free, read-only, needs no API key and runs no model. Returns {model, prompt_tokens, completion_tokens, prompt_usd, completion_usd, total_usd, pricing}. It is an estimate: the real charge uses the token counts the model reports afterwards. Auto-routing ids such as "synap-v1" have no fixed price and return an error saying so.

輸入參數model必填prompt_tokens必填completion_tokens

版本歷史

3
  1. v1.2.0最新Oct 16, 2026
  2. v1.1.0Oct 5, 2026
  3. v1.0.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分