anchor-mcp

Crates.ioanchor-mcp
lib.rsanchor-mcp
version0.2.0
created_at2025-03-01 18:54:43.845842+00
updated_at2025-03-03 21:51:00.712509+00
descriptionAnchor Model Context Protocol (MCP) Rust CLI server which allows AI IDE's such as Cursor or Windsurf to more effectively write Anchor programs
homepage
repositoryhttps://github.com/honey-guard/anchor-mcp
max_upload_size
id1573951
size85,288
Cian (cianyyz)

documentation

README

MCP Rust CLI server template

This is a MCP CLI server template for Anchor programs.

Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.

This server uses mcp-rs-template.

CLI options

  • --mcp: Enable MCP server
  • --resources: display resources
  • --prompts: display prompts
  • --tools: display tools

How to use Anchor MCP CLI server in Claude Desktop?

  1. Edit claude_desktop_config.json: Claude Desktop -> Settings -> Developer -> Edit Config
  2. Add the following configuration to the servers section:
{
   "mcpServers": {
      "security_check_program": {
         "command": "security_check_program",
         "args": [
            "--mcp"
         ]
      },
      "security_check_file": {
         "command": "security_check_file",
         "args": [
            "--mcp"
         ]
      }
   }
}

If you want to check MCP log, please use tail -n 20 -f ~/Library/Logs/Claude/mcp*.log.

References

** Solana Fender: https://github.com/honey-guard/solana-fender ** mcp-rs-tempalte https://github.com/linux-china/mcp-rs-template

Commit count: 9

cargo fmt