Skip to main content

Generate Cursor Agent Skills from MCP server tools

Project description

mcpskills-cli

Generate Agent Skills from MCP server tools. Connects via Streamable HTTP, discovers tools, and outputs a skill with schema docs and a call script in the language of your choice.

Why bake MCP into skills?

Skills are easy to understand, static, edit, and most coding and non-coding agents are adopting them. Traditional MCPs load all tools into context and pollute the agent; token penalty is also costly because of loading every tool. This is why we transform MCP into skills: skills reduce token consumption because the agent does not load all skills into context—it only loads them when necessary.

But why do we even need MCP?

MCP is a standardized protocol for AI agents to communicate. Because of this, any system can easily adopt it and create the necessary tools specific to their needs.

Install

pip install mcpskills-cli
# or for development:
pip install -e .

Usage

mcpskills-cli --url <MCP_SERVER_URL> --token <TOKEN> [--name <NAME>] [--output <DIR>] [--script <LANG>] [--multi-skills]
Flag Default Description
--url (required) MCP server endpoint
--token (required) Bearer token
--name from URL Server name (skill dir + credentials key)
--output ~/.cursor/skills Skills output directory
--script bash Call script language: bash, python, node, go, rust
--multi-skills false Generate a separate skill for each tool

Examples

# Generate single skill with all tools (default)
mcpskills-cli --url http://localhost:8027/mcp/abc123 --token mytoken --name my-db

# Generate separate skill for each tool
mcpskills-cli --url http://localhost:8027/mcp/abc123 --token mytoken --name my-db --multi-skills

# Generate with Python call script
mcpskills-cli --url http://localhost:8027/mcp/abc123 --token mytoken --name my-db --script python

# Generate with Node.js call script
mcpskills-cli --url http://localhost:8027/mcp/abc123 --token mytoken --name my-db --script node

Credentials

Stored in ~/.mcps/credentials (INI format, chmod 600). One section per server, updated automatically.

[my-db]
url = http://localhost:8027/mcp/abc123/
token = mytoken

Rotate tokens by editing the file directly; no need to regenerate skills.

Generated Output

Default Mode (Single Skill)

~/.cursor/skills/<server-name>/
  SKILL.md              # Documents all tools with parameters
  scripts/
    call.<ext>          # Calls any tool: ./call.<ext> <tool_name> '{"key":"val"}'

Multi-Skills Mode (--multi-skills)

~/.cursor/skills/<server-name>-<tool-name-1>/
  SKILL.md              # Documents single tool
  scripts/
    call.<ext>          # Calls tool: ./call.<ext> <tool_name> '{"key":"val"}'

~/.cursor/skills/<server-name>-<tool-name-2>/
  SKILL.md
  scripts/
    call.<ext>

Requirements

  • Python >= 3.10
  • fastmcp >= 2.3
  • jinja2 >= 3.1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcpskills_cli-0.1.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcpskills_cli-0.1.2-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file mcpskills_cli-0.1.2.tar.gz.

File metadata

  • Download URL: mcpskills_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for mcpskills_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6774091b69e5896362ce7e53ba0519b2169aec1d138920ad6c8e4a7dd8fd95e0
MD5 dc186e150686dbde389e6c093f17c89d
BLAKE2b-256 7e712398375b4a725eff60430370bc8f3b048df3e729cf979e843ad21cc754be

See more details on using hashes here.

File details

Details for the file mcpskills_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mcpskills_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for mcpskills_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a066ed6ed242f40b3e150a241f5f4fb278bf12b0cb3bb589d43f9373df96bb38
MD5 55348f446d1276a52a7d6627e13e99af
BLAKE2b-256 57be257061720831596e52425b01a6c4991633f6d42af1adac7c571d29f80b10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page