Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Cmdhub

FreeNot checked

MCP (Model Context Protocol) server for CmdHub — enables AI Agents to search and execute CLI commands

GitHubEmbed

About

MCP (Model Context Protocol) server for CmdHub — enables AI Agents to search and execute CLI commands

README

English | 简体中文

A decentralized, intent-driven CLI command registry and offline search infrastructure built for AI Agents and modern developers.

What is CmdHub?

CmdHub provides standardized, machine-readable ACI (Agent-Computer Interface) contracts for CLI tools, enabling AI Agents to discover and execute terminal commands with zero hallucination, millisecond latency, and full security guardrails.

Architecture

cmdhub-oss/                  # This repository (open-source)
├── cmdhub-cli/              # cmdh — local CLI client (Rust)
├── cmdhub-mcp/              # MCP server for IDE/Agent integration
├── cmdhub-shared/           # Shared types and ACI schema definitions
├── cmdhub-skills/           # Plugin/skill system
└── schemas/                 # ACI JSON Schema definitions

Key Features

  • Offline Hybrid Search: FTS5 full-text + sqlite-vec vector search with RRF fusion (< 1ms)
  • MCP Server: Native Model Context Protocol for Claude Code, Cursor, etc.
  • Safety Guardrail: Risk-level blocking for dangerous commands
  • XDG Compliant: Strict adherence to XDG Base Directory Specification
  • Ed25519 Signed DB: Cryptographic verification of all distributed databases

Quick Start

# Install from source
cargo install cmdhub-cli

# Or build locally
cargo build --release -p cmdhub-cli

# Update the local database
cmdh update

# Search for a command
cmdh search "extract tar excluding node_modules"

# Start MCP server
cmdh mcp --transport stdio

Use as an AI Agent Skill

CmdHub ships an Agent Skill that teaches AI agents (Claude Code, etc.) when and how to use cmdh for offline command discovery. Install it with the skills CLI:

npx skills add https://github.com/Xuepoo/cmdhub-oss/tree/main/cmdhub-skills

The skill covers search tips, OS-aware install resolution, risk handling, and the cmdhub_search / cmdhub_execute MCP tools.

Documentation

Full architecture, API, and design specifications are in the cmdhub-docs directory.

Key documents:

Development

# Format check
cargo fmt --all -- --check

# Lint
cargo clippy --all-targets --all-features -- -D warnings

# Test
cargo test --all-features --workspace

# Pre-commit
pre-commit run --all-files

License

MIT License — see LICENSE

from github.com/Xuepoo/cmdhub-oss

Installing Cmdhub

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/Xuepoo/cmdhub-oss

FAQ

Is Cmdhub MCP free?

Yes, Cmdhub MCP is free — one-click install via Unyly at no cost.

Does Cmdhub need an API key?

No, Cmdhub runs without API keys or environment variables.

Is Cmdhub hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Cmdhub in Claude Desktop, Claude Code or Cursor?

Open Cmdhub on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Cmdhub with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs