mc-mcp
If you are the rightful owner of mc-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server for the metacontract framework, providing smart contract development support via Foundry integration and semantic documentation search.
mc-mcp is an extensible MCP server designed for the metacontract (mc) framework. It enables AI-powered smart contract development workflows by exposing tools such as mc_search_docs_semantic for semantic search over mc documentation, mc_setup for initializing new Foundry projects, mc_test for running Foundry tests, mc_deploy for deploying contracts, and mc_upgrade for upgrading contracts. The server is built with a focus on performance and safety using Rust, and it integrates with various MCP-compatible clients like Cursor, Cline, and RooCode. The server requires the MC_PROJECT_ROOT environment variable to be set for path resolution, ensuring consistent behavior across different environments. Configuration is managed via a mcp_config.toml file, and the server supports flexible configuration and structured logging.
Features
- Layered Architecture: Ensures maintainability and testability with a structured approach.
- Rust Implementation: Provides performance and safety for the server operations.
- Qdrant Integration: Uses an embedded vector DB for fast semantic search.
- Local Embedding Generation: Utilizes fastembed-rs for efficient embedding generation.
- Flexible Configuration: Managed via figment for easy customization.
Tools
mc_search_docs_semantic
Performs semantic search over mc documentation and user-configured sources.
mc_setup
Initializes a new Foundry project using the metacontract/template.
mc_test
Runs Foundry tests in your workspace.
mc_deploy
Deploys contracts using the script specified in mcp_config.toml.
mc_upgrade
Upgrades contracts using the script specified in mcp_config.toml.