About Anchor Mcp
Anchor Mcp is a CLI server template for Anchor programs, intended for developers building MCP integrations around Anchor. It uses mcp-rs-template and provides options to enable the server or display prompts and tools.
Key features
- 01CLI server template for Anchor programs
- 02Enable MCP mode with --mcp
- 03Display prompts with --prompts
- 04Display tools with --tools
Use cases
- 01Starting an MCP server project for Anchor programs
- 02Viewing available prompts and tools from the CLI
MCP support
It is an MCP server template for Anchor programs. MCP clients such as Claude Desktop can launch it with the --mcp option.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEAnchor MCP
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--prompts: display prompts--tools: display tools
How to use Anchor MCP CLI server in Claude Desktop?
- Edit
claude_desktop_config.json: Claude Desktop ->Settings->Developer->Edit Config - Add the following configuration to the
serverssection:
{
"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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.