Canton Ledgerview MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Canton Ledgerview MCP Server analyze my DAML template for safety issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Canton Ledgerview MCP Server
This is a custom Model Context Protocol (MCP) server for the Ledgerview project. It provides tools to analyze the project structure and status with full HTTP API integration.
Prerequisites
uv (for Python dependency management)
Docker (for containerized deployment)
Related MCP server: AI Knowledge Center MCP
Quick Start with Docker
git clone https://github.com/stratoslab/Canton-MCP-Server.git
cd Canton-MCP-Server
docker build -t canton-mcp-server .
docker run -d -p 8000:8000 --name canton-mcp canton-mcp-serverServer will be available at http://localhost:8000
Local Development
Run the server directly using uv:
uv run src/server.pyMCP Client Setup
Add the following to your MCP settings file (e.g., claude_desktop_config.json):
{
"mcpServers": {
"canton-ledgerview": {
"command": "uv",
"args": [
"run",
"src/server.py"
],
"cwd": "/absolute/path/to/Canton-MCP-Server"
}
}
}HTTP API Integration
The server provides REST endpoints for AI agents and web applications:
Tool Execution
Execute any MCP tool via HTTP:
POST /tools/{tool_name}/call
Content-Type: application/json
{
"arguments": {
"arg1": "value1",
"arg2": "value2"
}
}Example - DAML Safety Analysis:
curl -X POST http://localhost:8000/tools/analyze_daml_safety/call \
-H "Content-Type: application/json" \
-d '{"arguments": {"code": "template Limited\n with\n owner: Party\n where\n signatory owner"}}'Response:
{
"content": [{"type": "text", "text": "✅ DAML code passes basic safety gate analysis."}],
"isError": false
}Resource Management
List and read documentation resources:
# List all resources
GET /resources
# Read specific resource
POST /resources/read
Content-Type: application/json
{
"uri": "canton://docs/ledger-model"
}Available Endpoints
GET /- Server statusGET /health- Health checkGET /tools- List available toolsPOST /tools/{name}/call- Execute toolGET /resources- List documentation resourcesPOST /resources/read- Read documentation content
Intelligence Features
This server includes embedded knowledge about Canton and DAML:
Resources
Agents can read these specialized resources to understand Canton architecture:
canton://docs/ledger-model: DAML Ledger Model documentationcanton://docs/architecture: Canton Network architecturecanton://docs/language-reference: DAML language referencecanton://docs/chainsafe-mcp: ChainSafe MCP referencecanton://docs/llm-architecture: LLM-Primary Architecturecanton://docs/quickstart-demo: Canton Network Quickstart Democanton://docs/daml-intro: DAML Introduction and Tutorialcanton://docs/daml-patterns: DAML Design Patternscanton://docs/splice-overview: Splice & Global Synchronizer Overviewcanton://docs/splice-scan-api: Splice Scan API Reference
Specialized Tools
analyze_daml_safety: Performs semantic analysis on DAML code to identify missing safety markersgenerate_canton_deployment_script: Generates tailored scripts for Dev/Prod environmentsget_project_summary: Returns a summary of the projectcheck_server_status: Returns "OK" if reachablelist_available_docs: Lists all available documentation resourcesadd_documentation: Adds new documentation to the knowledge base
Available Tools
6 toolsadd_documentationC
Adds a new documentation file to the MCP server's knowledge base.
Args: filename: name of the file (e.g., 'my_guide.md') content: The markdown content of the documentation description: Short description of what this doc covers
Inputs: content (required), filename (required), description. Returns: result
analyze_daml_safetyC
Analyzes DAML code against the Canton Safety Gates. This simulates the 'intelligent' reasoning by checking for specific safety markers.
Inputs: code (required). Returns: result
check_server_statusB
Returns a simple 'OK' if the server is up.
Inputs: no named parameters. Returns: result
generate_canton_deployment_scriptC
Generates a starter deployment script for a Canton network.
Inputs: network_type. Returns: result
get_project_summaryB
Reads the package.json and counts files in the specified project path to provide a summary. Arguments: project_path: Relative or absolute path to the project root.
Inputs: project_path. Returns: result
list_available_docsB
Lists all available Canton/DAML documentation resources.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct verb+resource: DAML safety analysis, deployment script generation, docs listing/adding, project summary, and health check. The only mild overlap is between get_project_summary and check_server_status, both diagnostic reads, but their scopes (project contents vs. server liveness) are clearly stated.
All six tools follow a consistent snake_case verb-first pattern (analyze_*, generate_*, list_*, add_*, get_*, check_*). Object nouns are explicit and predictable, so names are self-describing without needing descriptions.
Six tools is well within the ideal 3-15 range and each maps to a distinct capability rather than a redundant variant. No filler or trivially duplicated tools are present.
Documentation management is half-covered: you can list and add docs but cannot retrieve, update, or delete an existing doc, creating a dead end for reading content. Additionally, despite the 'Ledgerview' framing, there are no tools to query ledger state or contracts, leaving the core domain only partially served.
Maintenance
Related MCP Connectors
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Query, browse, and automate OmegaAI workspaces from any MCP client. Streamable HTTP with OAuth 2.0.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceMCP server for AI DevTool workflow, exposing tools and resources for code review, repository chat, and repository operations.1-
- AlicenseNot gradedqualityCmaintenanceLocal-first MCP server that provides project context, verification gates, and structured tools for coding agents to discover knowledge, run diagnostics, and execute allowlisted commands within a repository.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that lets AI agents connect to LTD project workspaces to inspect project health, search and manage tasks, assign owners, and add comments, with scoped tokens and preview-confirm safety for writes.2MIT
- FlicenseBqualityDmaintenanceProvides a minimal MCP server with safe tools for AI assistants to search project files, read files, search local documentation, and run pre-approved checks within a single project directory.4-