
yoda-digital/mcp-cerebra-legal-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
An enterprise-grade MCP server for legal reasoning and analysis based on the "think" tool concept from Anthropic's engineering blog.
Обзор
An enterprise-grade MCP server for legal reasoning and analysis based on the "think" tool concept from Anthropic's engineering blog.
README
Показан фрагмент оригинального README. Открыть оригинал.
Cerebra Legal MCP Server
An enterprise-grade MCP server for legal reasoning and analysis based on the “think” tool concept from Anthropic’s engineering blog.
Overview
Cerebra Legal provides three powerful tools for legal reasoning and analysis:
- legal_think - A structured legal reasoning tool that helps analyze complex legal issues with domain-specific guidance and templates.
- legal_ask_followup_question - A specialized tool for asking follow-up questions in legal contexts with domain-specific options.
- legal_attempt_completion - A tool for presenting legal analysis results with proper structure and citation formatting.
The server automatically detects legal domains (ANSC contestation, consumer protection, contract analysis) and provides domain-specific guidance, templates, and feedback.
Features
- Domain Detection: Automatically identifies the legal domain of the analysis
- Domain-Specific Guidance: Provides tailored guidance for different legal domains
- Structured Templates: Offers domain-specific templates for legal analysis
- Citation Formatting: Properly formats legal citations
- Thought Quality Analysis: Provides feedback on legal reasoning quality
- Revision Support: Allows for revising previous thoughts
Installation
# Clone the repository
git clone https://github.com/yoda-digital/mcp-cerebra-legal-server.git
cd mcp-cerebra-legal-server
# Install dependencies
npm install
# Build the project
npm run build
Usage
Running the Server
npm start
Testing the Server
The repository includes a test client that demonstrates how to interact with the server:
# Make the test client executable
chmod +x test-client.js
# Run the test client
./test-client.js
The test client will:
- Start the server
- Send a tools/list request to get available tools
- Send a legal_think request with a sample thought
- Display the server’s responses
Adding to Claude
To add the server to Claude, update your MCP settings file with the following configuration:
For VSCode Extension
Edit the file at ~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json:
{
"mcpServers": {
"cerebra-legal": {
"command": "node",
"args": ["/path/to/mcp-cerebra-legal-server/build/index.js"],
"disabled": false,
"alwaysAllow": []
}
}
}
For Claude Desktop App
Edit the file at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent on your platform:
{
"mcpServers": {
"cerebra-legal": {
"command": "node",
"args": ["/path/to/mcp-cerebra-legal-server/build/index.js"],
"disabled": false,
"alwaysAllow": []
}
}
}
Using the Tools in Claude
Once the server is added to Claude, you can use the tools in your conversations:
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"cerebra-legal": {
"command": "node",
"args": ["/path/to/mcp-cerebra-legal-server/build/index.js"],
"disabled": false,
"alwaysAllow": []
}
}
}