Token导航 LogoToken导航

MCP Server · 开发工具

cllm MCP

用于从bash调用MCP服务器的CLI工具,通过将工具调用卸载到命令行来减少LLM令牌使用,支持批处理操作的守护进程模式。

stdio官方级别未说明来源级核验工具 0
命令行工具配置管理PythonClaude

快速开始

作者 / 组织
cmd-llm
提供方
cmd-llm
运行时
Python

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

cllm MCP 属于开发工具类 MCP Server,公开资料标注 0 个工具,通过stdio 本地进程接入,适配 Claude,有可以直接复制的安装命令;接入前先确认权限范围。

分类

开发工具

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

uv run cllm-mcp --help

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

cllm-mcp

用于从bash调用MCP(模型上下文协议)服务器的CLI工具。通过将工具调用卸载到命令行,使用守护进程模式进行批处理操作,减少LLM令牌的使用。

主要特点:

  • 从bash直接调用MCP工具(消除80-95%的上下文开销)
  • Daemon模式,批处理操作加速10-60倍
  • CLLM式层次结构的配置管理
  • 零外部依赖(仅限Python stdlib)

建筑

┌─────────────────┐
│   LLM / Agent   │
└────────┬────────┘
         │ calls bash script
         ▼
┌─────────────────┐
│  cllm-mcp CLI   │
│   (command)     │
└────────┬────────┘
         │ invokes
         ▼
┌─────────────────┐
│   MCP Client    │ ◄─── Core Implementation
└────────┬────────┘
         │ JSON-RPC over stdio
         ▼
┌─────────────────┐
│   MCP Server    │ (filesystem, github, etc.)
└─────────────────┘

快速开始

基本用法

# List tools
cllm-mcp list-tools "npx -y @modelcontextprotocol/server-filesystem /tmp"

# Call a tool
cllm-mcp call-tool "npx -y @modelcontextprotocol/server-filesystem /tmp" \
  read_file '{"path": "/tmp/test.txt"}'

# Interactive REPL
cllm-mcp interactive "npx -y @modelcontextprotocol/server-filesystem /tmp"

# Daemon mode (for batch operations)
cllm-mcp daemon start
cllm-mcp call-tool filesystem read_file '{"path": "/tmp/file.txt"}'
cllm-mcp daemon stop

智能守护程序检测

命令在运行时自动检测和使用守护进程,并优雅地回退到直接模式。

配置

在中配置服务器 .cllm/mcp-config.json:

cllm-mcp config list       # List configured servers
cllm-mcp config validate   # Validate configuration
cllm-mcp config show       # Display full configuration

安装

# Clone and install
git clone 
cd cllm-mcp
uv sync

# Run via uv or from installed location
uv run cllm-mcp --help
# or
cllm-mcp --help

用法示例

直接服务器调用

# List tools
cllm-mcp list-tools "npx -y @modelcontextprotocol/server-filesystem /tmp"

# Call a tool
cllm-mcp call-tool "npx -y @modelcontextprotocol/server-filesystem /tmp" \
  read_file '{"path": "/tmp/test.txt"}'

基于配置(推荐)

创建 .cllm/mcp-config.json:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
      "autoStart": true
    },
    "github": {
      "command": "npx",
      "args": ["@modelcontextprotocol/server-github"],
      "env": {"GITHUB_TOKEN": "${GITHUB_TOKEN}"},
      "autoStart": true
    }
  }
}

然后按名称引用:

cllm-mcp list-tools filesystem
cllm-mcp call-tool filesystem read_file '{"path": "/tmp/test.txt"}'
cllm-mcp interactive filesystem

使用Daemon进行批处理操作

cllm-mcp daemon start

# Multiple operations run fast (10-60x speedup)
for i in {1..100}; do
  cllm-mcp call-tool filesystem read_file '{"path": "/tmp/file'$i'.txt"}'
done

cllm-mcp daemon stop

与LLM集成

LLM可以将MCP操作委托给bash,将上下文减少80-95%。系统提示示例:

You have access to MCP servers via bash commands:

cllm-mcp list-tools          # List available tools
cllm-mcp call-tool     # Execute tool with JSON args

Example:
cllm-mcp call-tool filesystem read_file '{"path": "/tmp/file.txt"}'
cllm-mcp call-tool github create_issue '{"owner": "user", "repo": "repo", "title": "..."}'

All results are returned as JSON.

通用MCP服务器

要配置的常用服务器:

  • 文件系统: npx -y @modelcontextprotocol/server-filesystem /tmp
  • GitHub: npx @modelcontextprotocol/server-github (要求 GITHUB_TOKEN)
  • SQLite: npx @modelcontextprotocol/server-sqlite /path/to/db.sqlite
  • 勇敢的搜寻: npx @modelcontextprotocol/server-brave-search (要求 BRAVE_API_KEY)
  • 时间: uvx mcp-server-time

使用 cllm-mcp list-tools 查看可用工具。

配置

存储于 .cllm/mcp-config.json (按顺序搜索: --config arg → CLLM_MCP_CONFIG env → ./mcp-config.json → ./.cllm/mcp-config.json → ~/.cllm/mcp-config.json).

架构:

{
  "mcpServers": {
    "server_name": {
      "command": "npx",
      "args": ["@modelcontextprotocol/server-name", "arg1"],
      "env": {"API_KEY": "value"},
      "autoStart": true,
      "optional": false
    }
  }
}
  • 命令 (必填):可执行(例如。, npx, python, uvx)
  • 参数 (必需):命令参数为数组
  • 环境:环境变量
  • 自动启动:守护进程启动时自动启动
  • 可选的:如果服务器发生故障,不要让守护进程失败

高级用法

错误处理

返回退出代码 0 关于成功, 1 在向stderr发送消息时出错:

if ! output=$(cllm-mcp call-tool filesystem read_file '{"path": "/tmp/file.txt"}' 2>&1); then
  echo "Error: $output" >&2
  exit 1
fi

使用jq进行处理

使用JSON处理的链操作:

# List files and process each
cllm-mcp daemon start
cllm-mcp call-tool filesystem list_directory '{"path": "/tmp"}' \
  | jq -r '.contents[].name' \
  | while read file; do
    cllm-mcp call-tool filesystem read_file "{\"path\": \"/tmp/$file\"}"
  done
cllm-mcp daemon stop

守护程序模式

Daemon使服务器保持运行 10-60倍加速 批量操作。自动检测:无需标记。

cllm-mcp daemon start              # Start once
cllm-mcp call-tool fs read_file '{...'  # Auto-detects daemon
cllm-mcp daemon stop               # Stop when done

管理层:

cllm-mcp daemon start              # Start background daemon
cllm-mcp daemon start --foreground  # Start in foreground (debug)
cllm-mcp daemon status             # Check if running
cllm-mcp daemon restart            # Restart
cllm-mcp daemon stop               # Stop

配置:

  • 服务器与 autoStart: true 自动初始化
  • 使用 optional: true 忽略该服务器的启动失败
  • 自定义插座: cllm-mcp daemon start --socket /path/to/socket

项目结构

cllm_mcp/
├── main.py              # Command dispatcher
├── client.py            # Client implementation
├── config.py            # Configuration management
├── daemon.py            # Daemon commands
├── daemon_server.py     # Daemon server
├── daemon_lifecycle.py   # Daemon lifecycle
├── daemon_utils.py      # Daemon utilities
├── json_rpc_client.py   # JSON-RPC communication
├── socket_utils.py      # Socket utilities
└── env_expansion.py     # Environment variable expansion

docs/
├── decisions/           # Architecture Decision Records (ADR 0001-0008)
├── MIGRATION.md         # Legacy command migration guide
└── testing/             # Test documentation

tests/                   # Comprehensive test suite (100+ tests)
examples/                # Example scripts

测试

uv run pytest              # All tests
uv run pytest -m unit      # Fast unit tests
uv run pytest -m daemon    # Daemon tests
uv run pytest --cov        # With coverage

贡献

  1. 分叉存储库
  2. 创建要素分支
  3. 为您的更改添加测试
  4. 确保测试通过
  5. 提交拉取请求

看 贡献.md 了解详情。

体系结构决策

看 docs/decisions/ 对于ADR:

  • ADR-0001:Vibe决策格式
  • ADR-0002: uv 包管理器
  • ADR-0003:统一的守护进程/客户端命令
  • ADR-0004:CLLM样式配置
  • ADR-0005:自动初始化服务器
  • ADR-0006:工具调用示例
  • ADR-0007:现代化的入口点
  • ADR-0008:环境变量支持

资源

______________________________________________________________________

许可证:MIT 状态:积极维护 python: 3.7+

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

命令行工具Python本地部署MCP协议LLM优化批处理操作配置管理

支持客户端

Claude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
cllm MCP

MCP World · 本页

0stdio有1 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

cllm MCP 怎么安装?

公开资料给出的安装命令是 uv run cllm-mcp --help,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

cllm MCP 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

cllm MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

cllm MCP 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

cllm MCP 支持哪些客户端?

公开资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP