Claude Code Plugin MCP - Access Claude Code plugins via MCP protocol
Project description
cc-plugin-mcp
MCP (Model Context Protocol) server for accessing Claude Code plugins.
Overview
This MCP server provides an interface to Claude Code's plugin system via the Model Context Protocol, enabling you to retrieve plugin lists and detailed information. It can be used from MCP clients such as Claude Desktop, Cursor, etc.
Key Features
- MCP Protocol Support: Compliant with Model Context Protocol
- Plugin Management: Retrieve plugin lists and load elements from Claude Code plugins
- Security: Path traversal protection, input validation, error handling
- Performance: LRU cache for fast access
- Operability: Comprehensive logging, 29 test cases
MCP Tools
list_plugins- Get a list of available pluginsload_elements- Load elements (skills, agents, commands) from specified plugins
Configuration
Add the following to your MCP client configuration file (e.g., claude_desktop_config.json for Claude Desktop):
{
"mcpServers": {
"cc-plugin-mcp": {
"command": "uvx",
"args": ["cc-plugin-mcp"]
}
}
}
Installation
# Run directly with uvx (recommended)
uvx cc-plugin-mcp
# Or install from PyPI
pip install cc-plugin-mcp
# For development
git clone https://github.com/ppspps824/cc-plugin-mcp.git
cd cc-plugin-mcp
uv sync --all-extras
Usage
This runs as an MCP server and is called directly by MCP clients. For manual testing:
# Start MCP server with uvx (recommended)
uvx cc-plugin-mcp
# Or for development
uv run python -m cc_plugin_mcp.main
MCP Integration with AI Tools
For optimal use of this MCP server with AI tools like Cursor, Claude Desktop, or other MCP-compatible clients:
With Cursor
- Add the MCP server to your Cursor settings (
.cursor/settings.jsonor similar) - Include the configuration shown in the Configuration section above
- Important: Make sure to load the MCP server tools in your system prompt or initial message. Tell the AI to use the available MCP tools by instructing it to first call the MCP tools list to discover what's available.
With Claude Desktop
- Add the configuration to
claude_desktop_config.jsonas shown in the Configuration section - Restart Claude Desktop to enable the MCP server
- The MCP tools will be automatically available for Claude to use
Best Practices for Using MCP Tools
- Load the tools first: Always instruct the AI to first call the available MCP tools to discover what's available
- Check the system prompt: Ensure your system prompt or initial instructions include guidance to use MCP tools
- Discover capabilities: Use the tools to explore available plugins and their elements before requesting specific functionality
Testing
# Run tests
uv run pytest
# With coverage
uv run pytest --cov=cc_plugin_mcp
Troubleshooting
Plugins not found
- Check if
~/.claude/plugins/directory exists - Verify
marketplace.jsonexists in~/.claude/plugins/marketplaces/
MCP client doesn't recognize the server
- Verify MCP client configuration file is set up correctly
- Check if
uvxcommand is available (uvx --version) - Check MCP client logs for error messages
Tests failing
uv sync --all-extras --refresh
uv run pytest -v
License
MIT
Repository
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cc_plugin_mcp-0.1.5.tar.gz.
File metadata
- Download URL: cc_plugin_mcp-0.1.5.tar.gz
- Upload date:
- Size: 91.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68c10f767e7ae760fef4ff68de15c650ed4912986e226fe7ccfa13c8cbce672c
|
|
| MD5 |
02cecccc956cfbf0337b558005699b93
|
|
| BLAKE2b-256 |
a093283869a3a81c66eff0e2f45bc5e3de0108854b2d239d2b6a1a7b2c1278a5
|
File details
Details for the file cc_plugin_mcp-0.1.5-py3-none-any.whl.
File metadata
- Download URL: cc_plugin_mcp-0.1.5-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a982c365f4d2db2cf1d38e3ca4f178adc49b5819b8d105b3472fedd61a77c87
|
|
| MD5 |
a1ae020af32ae86f92614fb786b582c1
|
|
| BLAKE2b-256 |
148fb789f951a271267f7c150eb0c19ab770753c4601d855894a9130e301ca1c
|