← 返回
未分类 中文

Local MCP Server

Run a full Model Context Protocol (MCP) server in Termux. Exposes Read, Bash, Grep, glob tools for local Ollama models. Privacy-first, offline-capable, ~10MB.
在Termux中运行完整的模型上下文协议(MCP)服务器,暴露Read、Bash、Grep、glob工具,供本地Ollama模型使用。隐私优先,支持离线,体积约10MB。
wizelements
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 210
下载
💾 0
安装
1
版本
#latest

概述

Local MCP Server for Termux

Run a full MCP server in Termux that exposes the same tools as Amp but for local AI models via Ollama.

What Is MCP?

The Model Context Protocol is the standard for AI tool integration. This server implements it locally, so your Ollama models can:

  • Read files and directories
  • Execute bash commands
  • Search code with grep
  • Pattern match files with glob

Perfect For

  • Developers who want local AI without cloud dependency
  • Privacy-conscious users keeping code on-device
  • Termux power users building AI workflows
  • Offline development environments

What's Included

  • Full MCP server implementation (Node.js, ~10MB)
  • Tool wrappers for local CLI utilities
  • Path sandboxing for security
  • HTTP and stdio transport options
  • Amp-compatible interface (easy switching)
  • Health checks and graceful shutdown

Integration Examples

  • Connect Ollama models to local file system
  • Use with Claude Desktop as local tool provider
  • Build custom AI workflows with tool access

Quick Start

# Install dependencies
pnpm install

# Setup server
bash scripts/setup.sh

# Start MCP server
mcp-start

# Verify health
mcp-health

# Connect Ollama model
ollama run llama3.2 --mcp-server http://localhost:8080

Configuration

{
  "server": {
    "port": 8080,
    "transport": "http",
    "sandbox": "~/.openclaw/mcp-sandbox"
  },
  "tools": {
    "read": true,
    "bash": true,
    "grep": true,
    "glob": true
  },
  "security": {
    "allowedPaths": ["~/projects", "~/.openclaw"],
    "forbiddenCommands": ["rm -rf", "dd", "mkfs"]
  }
}

Requirements

  • Termux (Android) or Linux environment
  • Node.js v16+
  • Ollama installed (optional, for LLM integration)
  • pnpm or npm

Support

Email: support@cod3black.agency

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-26 18:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Surplus Funds Recovery System

wizelements
将无人认领的政府资金转化为被动收入。包含自动扫描、追踪寻人、短信推广、电子签名采集和索赔提交服务。
★ 0 📥 230

Cinematic Business Card Prospecting

wizelements
AI赋能名片获客,配合电影级邮件推广。拍照即得调研线索,发送带可视化模板的品牌邮件。
★ 0 📥 232

IG Comment Strategist

wizelements
AI 分析 Instagram 短视频/帖子,生成8 类高效评论,最大化曝光、促发回复、打造真实……
★ 0 📥 230