loading…
Search for a command to run...
loading…
This MCP server provides access to Composer Kit React component documentation, examples, and Celo Composer templates for building web3 applications on the Celo
This MCP server provides access to Composer Kit React component documentation, examples, and Celo Composer templates for building web3 applications on the Celo blockchain.
A Model Context Protocol (MCP) server for accessing Composer Kit UI components documentation, examples, and usage information. This server provides comprehensive access to the Composer Kit React component library designed for building web3 applications on the Celo blockchain.
git clone https://github.com/celo-org/composer-kit-mcp
cd composer-kit-mcp
pip install -e .
Install the MCP server (if not already done):
pip install composer-kit-mcp
Configure Cursor by adding the MCP server to your Cursor settings:
{
"mcpServers": {
"composer-kit-mcp": {
"command": "uvx",
"args": ["composer-kit-mcp"]
}
}
}
Restart Cursor to load the MCP server
Verify the setup by asking Cursor about Composer Kit components:
Install the MCP server (if not already done):
pip install composer-kit-mcp
Locate your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonEdit the config file to add the MCP server:
{
"mcpServers": {
"composer-kit-mcp": {
"command": "uvx",
"args": ["composer-kit-mcp"]
}
}
}
If the file doesn't exist, create it with the above content.
Restart Claude Desktop to load the MCP server
Verify the setup by asking Claude about Composer Kit:
# Install pipx if you haven't already
pip install pipx
# Install composer-kit-mcp in an isolated environment
pipx install composer-kit-mcp
# The command will be available globally
composer-kit-mcp
# Create a virtual environment
python -m venv composer-kit-mcp-env
source composer-kit-mcp-env/bin/activate # On Windows: composer-kit-mcp-env\Scripts\activate
# Install the package
pip install composer-kit-mcp
# Use the full path in your MCP config
# e.g., /path/to/composer-kit-mcp-env/bin/composer-kit-mcp
Command not found: Make sure the package is installed and the command is in your PATH
which composer-kit-mcp # Should show the path to the command
Permission errors: Try installing with --user flag or use pipx
pip install --user composer-kit-mcp
MCP server not connecting: Check that the command path in your config is correct
composer-kit-mcp # Should start the server (will wait for input)
Python version issues: Ensure you're using Python 3.11 or higher
python --version # Should be 3.11+
To test if the MCP server is working correctly:
# Test the server directly
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | composer-kit-mcp
This should return a JSON response with the available tools.
# Run the MCP server
python -m composer_kit_mcp.server
# Or use the CLI entry point
composer-kit-mcp
list_components
get_component
component_name (e.g., 'button', 'wallet', 'payment', 'swap')get_component_example
component_name, example_type (optional: 'basic', 'advanced', 'with-props')search_components
query (e.g., 'wallet', 'payment', 'token', 'nft')get_component_props
component_nameget_installation_guide
package_manager (optional: 'npm', 'yarn', 'pnpm', 'bun')get_components_by_category
category (e.g., 'Core Components', 'Wallet Integration', 'Payment & Transactions')list_celo_composer_templates
get_celo_composer_template
template_namelist_celo_composer_frameworks
get_celo_composer_commands
get_celo_composer_guide
guide_type ('quick-start', 'smart-contract-deployment', 'local-development', 'ui-components', 'deployment')get_integration_guide
create_celo_composer_project
project_name, owner, template, include_hardhat (optional, defaults to true)create_celo_composer_project tool to generate the setup commandThe server provides access to hardcoded Composer Kit component data and Celo Composer information:
src/composer_kit_mcp/
├── components/ # Component data and models
│ ├── data.py # Hardcoded component and Celo Composer information
│ └── models.py # Pydantic models for components and Celo Composer
├── server.py # Main MCP server with Composer Kit and Celo Composer tools
└── __init__.py # Package initialization
Essential UI components for basic functionality
Components for wallet connection and user management
Components for handling payments and blockchain transactions
Components for token selection and management
Components for NFT display and interaction
pytest
black .
ruff check .
mypy .
MIT License - see LICENSE file for details.
For issues and questions:
Выполни в терминале:
claude mcp add composer-kit-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.