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.

Install

pip install .
# 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.1.tar.gz (11.6 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.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcpskills_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 11.6 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.1.tar.gz
Algorithm Hash digest
SHA256 a5e26ed69ed9fb60ecc4d61a5ee4232fbf0aad73d4bb6879ec263f32f89165e8
MD5 10a7e69f7542d55df0ebec43a1f16b07
BLAKE2b-256 ca4f9b21d014380f802fd00f0e5ab9cec48b95d58126368d9fdbaf308c97f1ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcpskills_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3140318e473b90924744723531be64db5a39f8f35d226b66259637b1925384cd
MD5 be9e541d3cf72b53957b62a320e67678
BLAKE2b-256 63a82a5e502bea3e8a87214be2b15edd2906e0dad9fc32ee259cb44a91bde984

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