MCP Server
The Cadence MCP server gives AI agents access to Cadence documentation search, code checking, type inspection, and symbol lookup — all over HTTP. No local setup required.
Endpoint: https://cadence-mcp.up.railway.app/mcp
Quick start
One-click install
Claude Code
claude mcp add cadence-mcp -- npx -y mcp-remote https://cadence-mcp.up.railway.app/mcpClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"cadence": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://cadence-mcp.up.railway.app/mcp"]
}
}
}Available tools
| Tool | Description |
|---|---|
search_docs | Search Cadence and Flow documentation by keyword |
get_doc | Get full content of a documentation page |
browse_docs | Browse the documentation tree structure |
cadence_check | Check Cadence code for syntax and type errors |
cadence_hover | Get type information for a symbol at a position |
cadence_definition | Find where a symbol is defined |
cadence_symbols | List all symbols in a piece of Cadence code |
All LSP tools (cadence_check, cadence_hover, cadence_definition, cadence_symbols) support mainnet and testnet address imports (e.g. import FungibleToken from 0xf233dcee88fe0abe). Dependencies are resolved automatically.
Use directly via HTTP
The MCP endpoint uses Streamable HTTP transport. You can call tools directly:
# List available tools
curl -X POST https://cadence-mcp.up.railway.app/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
# Check Cadence code for errors
curl -X POST https://cadence-mcp.up.railway.app/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{
"jsonrpc":"2.0","id":1,
"method":"tools/call",
"params":{
"name":"cadence_check",
"arguments":{"code":"access(all) fun greet(): String { return \"Hi\" }"}
}
}'Run locally
For offline use or development, you can run the MCP server locally via stdio:
npx @outblock/cadence-mcpThis requires the Flow CLI installed locally for LSP tools.
To configure a local stdio server in Claude Code:
claude mcp add cadence-mcp -- npx -y @outblock/cadence-mcp