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

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.0
File Size Uploaded Provenance Actions
suanlinfang_mcp-0.1.0.tar.gz 8.0 kB Without provenance Details for suanlinfang_mcp-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 16.6 kB

Release files / suanlinfang_mcp-0.1.0.tar.gz

Download URL suanlinfang_mcp-0.1.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3c977bd0dd84830426e00cdf517414bc518110d736e0039d419f24bcba5591e6
BLAKE2b-256 checksum
How to use checksums
54be5964920af521056cef6c42b4acdb9452850f2c0632a0f50984fa3477d44c
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.0-py3-none-any.whl

Download URL suanlinfang_mcp-0.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
670c235e7e59d5dbec7f2f63c1f3c86912b3cdf0a7e3db499129b86474fd2107
BLAKE2b-256 checksum
How to use checksums
72b808218d387920e65a1b90f4f19b4d050f10ae4bd24f3e0f9180b037b24057
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.0

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