@2kw/ai-mcp-server

中文文档
8.2.0发布于 2026/11/09SEE LICENSE IN LICENSETypeScriptES Module近 30 天下载 1万

MCP server for 2kw.ai — EU-hosted AI platform: OpenAI-compatible LLM gateway, schema-driven document extraction, transcription, agents with a knowledge base, and cost observability. 199 tools for Claude Code, Cursor, and Windsurf.

原始使用文档
文档目录9 节
  1. Installation
  2. Claude Code
  3. Cursor
  4. Windsurf
  5. Environment Variables
  6. Available Tools
  7. Why 2kw.ai
  8. Related
  9. License

2kw.ai MCP Server

An MCP (Model Context Protocol) server for 2kw.ai — the EU-hosted AI integration platform. It gives AI coding assistants like Claude Code, Cursor, and Windsurf direct access to an OpenAI-compatible LLM gateway, schema-driven document extraction, audio transcription, custom agents with a knowledge base, and cost observability — 199 tools, straight from your editor.

Typical prompts once installed: "extract the line items from this invoice PDF", "create a schema for purchase orders and test it against these samples", "transcribe this call recording", "what did our extraction traffic cost this week?".

Installation

Claude Code

claude mcp add 2kw --env AI_2KW_API_KEY=sk_your_api_key -- npx -y @2kw/ai-mcp-server

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "2kw": {
      "command": "npx",
      "args": ["-y", "@2kw/ai-mcp-server"],
      "env": {
        "AI_2KW_API_KEY": "sk_your_api_key"
      }
    }
  }
}

Windsurf

Add the same block to .windsurf/mcp.json. Any MCP-compatible client works with this configuration pattern — the server speaks stdio by default and streamable HTTP when MCP_TRANSPORT=http.

Get an API key from your 2kw.ai dashboard — paid plans start with a 7-day free trial.

Environment Variables

VariableRequiredDefaultDescription
AI_2KW_API_KEYYes—API key for the 2kw.ai platform (legacy alias: BACKBONE_API_KEY)
AI_2KW_BASE_URLNo2kw.ai cloud APIPoint at a self-hosted deployment (legacy alias: BACKBONE_BASE_URL)
AI_2KW_MEMORYNoofftrue makes agent runs through 2kw_create_response and 2kw_decide_agent_approvals opt into agent memory (X-Backbone-Memory: enabled)
MCP_TRANSPORTNostdioTransport mode: stdio or http
MCP_HTTP_PORTNo3100Port for HTTP transport

Available Tools

CategoryWhat your assistant can do
Document conversionConvert PDF, DOCX, XLSX, images, and 20+ formats to Markdown/text/HTML/JSON
Data extractionRun schema-driven extractions (sync/async), estimate tokens, re-run, inspect results
AI GatewayChat completions and Responses (agent or direct model) through the OpenAI-compatible gateway, list available models
TranscriptionTranscribe audio (FLAC, MP3, MP4, OGG, WAV, WebM) to text, JSON, SRT, VTT
SchemasCRUD, versioning, labels, validation, and testing against sample documents
PromptsVersioned prompt management, labels, compilation, testing
Datasets & experimentsBuild datasets, run experiments, manage evaluators, record scores
AgentsCRUD, versioning, labels, runs with the full result envelope, approval decisions, tool-approval history, and tool-catalog sync history
ConversationsCreate/inspect/delete conversations and replay their items for the responses API
Knowledge baseCRUD, document upload/attach/versioning, hybrid search, and citation resolution
FilesUpload, list, download, and delete files (agent input or knowledge documents)
MemoryList, read, write and delete your own agent memory files, forget everything; admins see member totals and erase a member
ObservabilityAnalytics (usage, quality, providers, errors), traces, billing limits
API docsBrowse the platform API documentation by section

Why 2kw.ai

  • EU data residency — built-in models run GDPR-compliant and EU-hosted, operated by Manfred Kunze Development GmbH (Germany)
  • One platform — gateway, extraction, transcription, and observability share one API, one dashboard, one bill
  • Grounding scores — every extracted value links back to where it came from in the source document
  • 2kw.ai — platform overview and pricing
  • Documentation — full API reference and guides
  • @2kw/ai — the 2kw.ai CLI (2kw, backbone, bb) for terminals and agentic workflows

License

Proprietary — see LICENSE for details.

版本与发布记录

@2kw/ai-mcp-server 共发布 180 个版本,首次发布于 2026/04/27;过去 12 个月发布了 180 个版本。

版本发布日期距今
8.2.0latest2026/11/09今天
8.2.0-dev.11dev2026/11/09今天
8.2.0-dev.102026/11/072 天前
8.2.0-dev.92026/11/072 天前
8.2.0-dev.82026/11/072 天前
8.2.0-dev.72026/11/062 天前

关于 @2kw/ai-mcp-server 的常见问题

@2kw/ai-mcp-server 是什么?

MCP server for 2kw.ai — EU-hosted AI platform: OpenAI-compatible LLM gateway, schema-driven document extraction, transcription, agents with a knowledge base, and cost observability. 199 tools for Claude Code, Cursor, and Windsurf.

如何安装 @2kw/ai-mcp-server?

在项目目录运行 npm install @2kw/ai-mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 2kw-mcp、backbone-mcp,可以用 npx 2kw-mcp 直接运行。

@2kw/ai-mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@2kw/ai-mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@2kw/ai-mcp-server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.20.8。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@2kw/ai-mcp-server 可以商用吗?

@2kw/ai-mcp-server 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@2kw/ai-mcp-server 的下载量有多少?

根据 npm 官方下载统计,@2kw/ai-mcp-server 在 2026/10/05 – 2026/11/03 这 30 天内被下载 10,495 次,日均约 350 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@2kw/ai-mcp-server 还在维护吗?

最新版本 8.2.0 发布于 2026/11/09(今天);至今共发布 180 个版本,其中过去 12 个月发布了 180 个;首次发布于 2026/04/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。