MCP.so
登录

CosmWasm MCP Server Template

@archway-network

基本信息

分类

开发工具

许可证

Apache-2.0 license

传输方式

stdio

作者

archway-network

关于 CosmWasm MCP Server Template

MCP server template for CosmWasm smart contract projects

CosmWasm MCP Server Template 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

CosmWasm MCP Server Template 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is CosmWasm MCP Server Template?

A Rust-based MCP (Model Context Protocol) server template that wraps query and execute entry point messages from any CosmWasm smart contract so they can be broadcast by a signer. It is designed for developers who want to enable AI agents to interact with their CosmWasm contracts via MCP tools.

How to use CosmWasm MCP Server Template?

Build the project using the Rust nightly channel (rustup default nightly) and run cargo build or cargo build --release. To customize the template for your own contract, update the contract dependency in Cargo.toml, modify src/server.rs to import your contract’s QueryMsg and ExecuteMsg, and set the deployed contract addresses in src/contract.rs. Optional steps include enabling MCP tools for custom types, customizing LLM instructions in src/instruction.rs, and choosing a transport mode (stdio, sse, or http-streamable).

Key features of CosmWasm MCP Server Template

  • Ships with six built‑in MCP tools for contract interaction
  • Works with any CosmWasm contract after minimal configuration
  • Supports three transport modes: stdio, sse, and http-streamable
  • Automatically generates JSON schemas from doc comments for better AI accuracy
  • Allows multi‑contract support through namespacing and pattern matching
  • Provides LLM instruction customization in dedicated source files

Use cases of CosmWasm MCP Server Template

  • Enable an AI agent to query on‑chain state from a CosmWasm contract
  • Allow agents to build and broadcast transactions to a contract
  • Rapidly prototype an MCP server for an existing CosmWasm dApp
  • Build a tool that lists contract deployments, entry points, and NFTs
  • Create a unified interface for multi‑contract systems

常见问题

1

What transport modes does the server support?

The template supports three transport modes: stdio (default), sse (server‑side events), and http‑streamable.

2

What tools are provided by default?

It provides six tools: `list_contract_deployments`, `list_nft_collections`, `list_query_entry_points`, `build_query_msg`, `list_tx_entry_points`, and `build_execute_msg`.

3

How do I connect the server to Claude Desktop?

Build a release binary, then point the MCP server’s `command` in `claude_desktop_config.json` to the binary path. No run arguments are required for stdio mode. For WSL users, execute the VM as the command and pass the binary path in `args`.

4

How can I improve AI accuracy when using this template?

Add doc comments (triple‑slash `///`) to your contract’s `msg::QueryMsg` and `msg::ExecuteMsg` types. These comments are embedded into JSON schemas by schemars, helping the LLM interpret entry points correctly.

5

What are the build requirements?

The project requires the Rust `nightly` toolchain because it uses edition 2024. Build with `cargo build` for development or `cargo build --release` for deployment.

评论

开发工具 分类下的更多 MCP 服务器