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 分