Get the FREE Ultimate OpenClaw Setup Guide →

mcp-cerebra-legal

MCP server from yoda-digital/mcp-cerebra-legal-server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio yoda-digital-mcp-cerebra-legal-server node /path/to/mcp-cerebra-legal-server/build/index.js

How to use

Cerebra Legal MCP Server exposes three domain-specific tools tailored for legal reasoning and analysis: legal_think, legal_ask_followup_question, and legal_attempt_completion. The server automatically detects the legal domain (such as ANSC contestation, consumer protection, or contract analysis) and provides domain-specific guidance, templates, and feedback to improve structured legal reasoning and citation formatting. You can interact with these tools within Claude or your MCP-enabled client to guide a legal analysis from initial reasoning through follow-up questions and final structured conclusions. Use legal_think to perform step-by-step legal analysis with an emphasis on domain-specific templates and guidance, legal_ask_followup_question to gather missing information with legally-terminology-rich prompts and optional options, and legal_attempt_completion to present the final, properly formatted legal analysis with citations and structured sections. The server is designed to support revision of prior thoughts and to provide feedback on the quality of legal reasoning in your exploration.

How to install

Prerequisites:

  • Node.js (LTS version) installed on your machine
  • Git installed
  • npm (comes with Node.js) or yarn if preferred

Installation steps:

  1. Clone the repository: git clone https://github.com/yoda-digital/mcp-cerebra-legal-server.git
  2. Navigate into the project: cd mcp-cerebra-legal-server
  3. Install dependencies: npm install
  4. Build the project: npm run build
  5. Start the server (in development mode): npm start

If you are integrating with Claude or another MCP client, configure your MCP settings to reference the server’s entry point (build/index.js) as shown in the guidance for Claude/VSCode and Claude Desktop App.

Additional notes

Tips and common considerations:

  • Environment variables: No specific env vars are documented in the README. If your deployment requires domain detection tuning or templates customization, you may need to expose env vars per your hosting environment.
  • When configuring in Claude or the VSCode extension, ensure the path to build/index.js is correct for your deployment (e.g., /path/to/mcp-cerebra-legal-server/build/index.js).
  • If you encounter build or runtime errors, verify Node.js version compatibility, reinstall dependencies, and ensure the build step completes successfully before starting the server.
  • The server provides domain detection and domain-specific templates; you can customize or extend templates and guidance by modifying the underlying source templates for ANSC contestation, consumer protection, and contract analysis domains.
  • For testing, use the included test client to verify the tools list and successful execution of legal_think, legal_ask_followup_question, and legal_attempt_completion.

Related MCP Servers

Sponsor this space

Reach thousands of developers