Skip to main content
skill GitHub Copilot official · GitHub

mcp-cli — GitHub Copilot skill: MCP server interface via CLI

CLI interface for calling MCP server tools from the command line. Useful when you need to automate access to external APIs, filesystems, or databases through MCP.

Install into GitHub Copilot · Skills CLI (Vercel) All methods and platforms ↓
npx skills add github/awesome-copilot --skill mcp-cli
Open on GitHub

What mcp-cli does

The skill gives you terminal access to MCP servers: list available servers and tools, inspect parameters and JSON schemas, call tools with arguments. mcp-cli shows all servers and their tools, mcp-cli outputs tool parameters for a specific server, mcp-cli / returns the JSON schema, and mcp-cli / '' executes a call with the provided arguments.

Under the hood: four steps—discover servers, explore tools, inspect schema, execute call. Flag -d adds descriptions, --json outputs results in JSON for scripting, --raw returns raw text. Search tools by name with mcp-cli grep "*pattern*".

Install this if you write scripts that call MCP tools or automate work with external systems from the command line. Skip it if you don't use MCP servers.

What it helps with

  • List available MCP servers and tools
  • Get JSON schema for a specific MCP tool
  • Call an MCP tool with JSON arguments from terminal
  • Search tools by name pattern
  • Automate MCP tool calls in scripts

Example prompts for the agent

  • Show all available MCP servers and tools using mcp-cli
  • Call filesystem/read_file for README.md via mcp-cli
  • Find all MCP tools with 'file' in the name

How to install mcp-cli

1Skills CLI (Vercel)

npx skills add github/awesome-copilot --skill mcp-cli

2GitHub CLI

gh skill install github/awesome-copilot mcp-cli

3Manually: put the files in place

.github/skills/mcp-cli/SKILL.md

From the same set554

The whole set →
git-commit official github This skill reviews Git changes, stages related files, and creates Conventional Commits. Use it when you want an agent to make one commit or split work into separate commits. GitHub Copilot 47,165installs excalidraw-diagram-generator official github Turn a plain-language description into an Excalidraw diagram. Useful for mapping processes, system structure, and relationships between entities. GitHub Copilot 31,639installs multi-stage-dockerfile official github This skill guides GitHub Copilot in writing multi-stage Dockerfiles for different languages and frameworks. Use it when the final runtime image should contain fewer build dependencies. GitHub Copilot 29,688installs documentation-writer official github Skill that turns the agent into a technical writer following the Diátaxis framework: tutorials, how-to guides, reference, and explanation. Proposes structure before writing. GitHub Copilot 27,757installs prd official github Turns a feature idea into a structured PRD with user stories, technical requirements, and risks. Use it when planning a software feature or an AI-powered one. GitHub Copilot 24,035installs refactor official github This skill reshapes existing code without changing its external behavior. Use it for gradual cleanup of large functions, duplication, weak types, and code smells. GitHub Copilot 22,321installs java-springboot official github Gives GitHub Copilot Spring Boot development practices, from project layout to tests and security. Use it when writing or reviewing Java application code. GitHub Copilot 21,272installs create-readme official github This skill reviews a project and creates a structured README.md. Use it when the repository needs clear documentation based on its actual files and code. GitHub Copilot 19,081installs

Similar

deploy-checklist official anthropics Builds a release-readiness checklist covering CI, reviews, migrations, flags, deployment, and rollback. Use it before shipping production changes. Claude Code CX Codex Cursor +1 5,600installs agent-platform-endpoint-management official google Manages Agent Platform serving endpoints: create, list, describe, update, and delete resources. Useful for permission, quota, and resource-busy errors. Claude Code Gemini CLI CX Codex 8,086installs agent-platform-migrate-from-ai-studio official google Guides a Gemini API migration from Google AI Studio to Gemini Enterprise Agent Platform. Use it when the app needs Google Cloud billing, IAM, or shared infrastructure. Claude Code Gemini CLI CX Codex 7,934installs wizard Matt Pocock This skill creates an interactive bash wizard for manual setup steps, CI secrets, third-party dashboards, and one-off migrations. Claude Code 553,369installs hyperframes-cli heygen-com Controls HyperFrames video workflows from the CLI: audits layouts and contrast, edits timeline clips, captures snapshots, and renders locally or in cloud runtimes. Claude Code CX Codex Cursor +1 1,200,000installs setup-pre-commit Matt Pocock This skill configures pre-commit checks for a JavaScript repository, running Prettier, type checking, and tests before each commit. Claude Code 489,289installs using-git-worktrees Jesse Vincent Prepares an isolated workspace before feature work or plan execution. It checks the repository first, then uses native worktree support or Git. Claude Code CX Codex 217,153installs finishing-a-development-branch Jesse Vincent This skill checks the test suite and guides branch completion: merge locally, open a Pull Request, or leave the work in place. Claude Code CX Codex 214,439installs

Questions about mcp-cli

How to install mcp-cli in GitHub Copilot?

Run npx skills add github/awesome-copilot --skill mcp-cli or gh skill install github/awesome-copilot mcp-cli. The skill will appear in .github/skills/mcp-cli/SKILL.md.

What does mcp-cli do?

Provides a CLI interface to MCP servers: list tools, inspect their schemas, and call them with arguments from the command line.

How to call an MCP tool with arguments?

Use mcp-cli / '', for example mcp-cli filesystem/read_file '{"path": "./README.md"}'. For complex JSON, pipe it via heredoc or stdin.

Source text

SKILL.md · MIT
---
name: mcp-cli
description: Interface for MCP (Model Context Protocol) servers via CLI. Use when you need to interact with external tools, APIs, or data sources through MCP servers, list available MCP servers/tools, or call MCP tools from command line.
---

# MCP-CLI

Access MCP servers through the command line. MCP enables interaction with external systems like GitHub, filesystems, databases, and APIs.

## Commands

| Command                            | Output                          |
| ---------------------------------- | ------------------------------- |
| `mcp-cli`                          | List all servers and tool names |
| `mcp-cli <server>`                 | Show tools with parameters      |
| `mcp-cli <server>/<tool>`          | Get tool JSON schema            |
| `mcp-cli <server>/<tool> '<json>'` | Call tool with arguments        |
| `mcp-cli grep "<glob>"`            | Search tools by name            |

**Add `-d` to include descriptions** (e.g., `mcp-cli filesystem -d`)

## Workflow

1. **Discover**: `mcp-cli` → see available servers and tools
2. **Explore**: `mcp-cli <server>` → see tools with parameters
3. **Inspect**: `mcp-cli <server>/<tool>` → get full JSON input schema
4. **Execute**: `mcp-cli <server>/<tool> '<json>'` → run with arguments

## Examples

```bash
# List all servers and tool names
mcp-cli

# See all tools with parameters
mcp-cli filesystem

# With descriptions (more verbose)
mcp-cli filesystem -d

# Get JSON schema for specific tool
mcp-cli filesystem/read_file

# Call the tool
mcp-cli filesystem/read_file '{"path": "./README.md"}'

# Search for tools
mcp-cli grep "*file*"

# JSON output for parsing
mcp-cli filesystem/read_file '{"path": "./README.md"}' --json

# Complex JSON with quotes (use heredoc or stdin)
mcp-cli server/tool <<EOF
{"content": "Text with 'quotes' inside"}
EOF

# Or pipe from a file/command
cat args.json | mcp-cli server/tool

# Find all TypeScript files and read the first one
mcp-cli filesystem/search_files '{"path": "src/", "pattern": "*.ts"}' --json | jq -r '.content[0].text' | head -1 | xargs -I {} sh -c 'mcp-cli filesystem/read_file "{\"path\": \"{}\"}"'
```

## Options

| Flag         | Purpose                   |
| ------------ | ------------------------- |
| `-j, --json` | JSON output for scripting |
| `-r, --raw`  | Raw text content          |
| `-d`         | Include descriptions      |

## Exit Codes

- `0`: Success
- `1`: Client error (bad args, missing config)
- `2`: Server error (tool failed)
- `3`: Network error

© github · MIT · github/awesome-copilot

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor