Skip to main content

suanlinfang-mcp

算邻坊(suanlinfang.cn)AI 能力的 MCP Server:语音转文字、文字转语音、图片/PDF 文字识别、类型化智能决策,共 11 个工具,stdio / Streamable HTTP 双形态。

快速开始(本地 stdio)

pip install suanlinfang-mcp
export SUANLINFANG_API_KEY=nk-xxxx        # 控制台创建:https://suanlinfang.cn/consume-web/api-keys.html
suanlinfang-mcp

Claude Desktop / Cursor 配置(mcpServers):

{
  "mcpServers": {
    "suanlinfang": {
      "command": "suanlinfang-mcp",
      "env": { "SUANLINFANG_API_KEY": "nk-xxxx" }
    }
  }
}

免安装方式(uv 自动拉包隔离运行):

{
  "mcpServers": {
    "suanlinfang": {
      "command": "uvx",
      "args": ["suanlinfang-mcp"],
      "env": { "SUANLINFANG_API_KEY": "nk-xxxx" }
    }
  }
}

远程形态(免安装)

已提供常驻 Streamable HTTP 端点,支持远程 MCP 的客户端直接登记:

{
  "mcpServers": {
    "suanlinfang": {
      "url": "https://suanlinfang.cn/mcp",
      "headers": { "X-SLF-Api-Key": "nk-xxxx" }
    }
  }
}

自建 HTTP 形态:suanlinfang-mcp-http(监听 127.0.0.1:8090,端口用 SUANLINFANG_MCP_PORT 覆盖;HTTP 形态下每请求优先读请求头 X-SLF-Api-Key / Authorization: Bearer)。

工具清单(11 个)

STT 语音转文字(约 0.5 元/小时,按实际时长)

  • transcribe_audio:短音频同步(≤3 分钟/20MB,公网 URL;热词 context、语种自动检测)
  • submit_transcription_task / get_transcription_task:长音频任务(最长 2 小时/500MB,自动 180 秒切段拼接全文)

TTS 文字转语音(约 2 元/万字符)

  • synthesize_speech:短文本同步(≤3000 字节,返回 1 小时有效的下载链接)
  • submit_speech_task / get_speech_task:长文本任务(≤20 万字,500 字切块拼接)
  • list_tts_voices:21 种音色清单

OCR 文字识别(约 0.5~1.5 分/页)

  • recognize_image:单图同步(标准/精准双档位,精准档支持自定义 prompt)
  • submit_document_task / get_document_task:PDF 任务(≤200MB/500 页)

DECISION 智能决策(约 2 元/百万输入 token,输出免费)

  • decide:类型化判断(choice 多选一 / noul 是否 / score 等级打分),返回校准概率

异步任务统一三步:submit → 轮询 get(10~30 秒一次,看 doneUnits/totalUnits 进度)→ 终态取结果,终态保留 72 小时。所有产品失败不计费。

环境变量

变量 作用 默认
SUANLINFANG_API_KEY API Key(stdio 形态鉴权来源) —
SUANLINFANG_BASE_URL API 地址覆盖 https://suanlinfang.cn/v1
SUANLINFANG_MCP_PORT HTTP 形态监听端口 8090

新用户注册即赠 ¥10 体验金:https://suanlinfang.cn

Metadata

Release files for suanlinfang-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for suanlinfang-mcp 0.1.1
File Size Uploaded Provenance Actions
suanlinfang_mcp-0.1.1.tar.gz 8.1 kB Without provenance Details for suanlinfang_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for suanlinfang-mcp 0.1.1
File Interpreter ABI Platform Actions
suanlinfang_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for suanlinfang_mcp-0.1.1-py3-none-any.whl

Total release size: 16.7 kB

Release files / suanlinfang_mcp-0.1.1.tar.gz

Download URL suanlinfang_mcp-0.1.1.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a910652c60300511fd3d59c29b9785e40caa55286d07cab0ea532198947081cf
BLAKE2b-256 checksum
How to use checksums
5a3f799ac464ad1dfeef6b15f27abe4ab02e34fff686a0274ff3109f8eb3a4ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release files / suanlinfang_mcp-0.1.1-py3-none-any.whl

Download URL suanlinfang_mcp-0.1.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2f1098a7ac5dd70375f414db267a460e27a501d0c6ed79a3d3a95db8135ce5f
BLAKE2b-256 checksum
How to use checksums
7de276100cffc11c4fdd46380d7de258b93b637ae0c5274a6d214995c982136a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Security for suanlinfang-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page