MCP server for VIKK Legal AI Assistant - Generate legal documents via Claude Desktop
Project description
VIKK Legal AI MCP Server
MCP (Model Context Protocol) server for integrating VIKK Legal AI with Claude Desktop and Claude Code.
Overview
This MCP server provides tools for:
- Generating legal documents (demand letters, cease & desist, notices, agreements)
- Chatting with VIKK Legal AI assistant
- Extracting text from PDF files
- Managing chat sessions
Quick Start (Recommended)
The easiest way to use this MCP server is with uvx - no installation required!
Claude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"vikk-legal": {
"command": "uvx",
"args": ["vikk-legal-mcp"],
"env": {
"VIKK_API_URL": "https://lab.vikk.live",
"VIKK_API_KEY": "your_api_key_here"
}
}
}
}
Then restart Claude Desktop (Cmd+Q on macOS).
Get an API Key
- Contact VIKK AI to get access
- Log in to https://lab.vikk.live
- Navigate to Admin > API Keys
- Create and copy your API key
Alternative Installation
Install from PyPI
pip install vikk-legal-mcp
Install from Source
git clone https://github.com/vikkaird/vikkai-agentic-server.git
cd vikkai-agentic-server/mcp-server
uv sync
Configuration
Set environment variables before running:
export VIKK_API_URL="http://localhost:8000" # Your VIKK API URL
export VIKK_API_KEY="vk_live_xxxxx" # Your API key from VIKK admin panel
export VIKK_TIMEOUT="60" # Request timeout in seconds (optional)
Getting an API Key
- Log in to VIKK admin panel
- Navigate to Admin > API Keys
- Create a new API key
- Copy the full key (shown only once)
Usage
Run Standalone
uv run vikk_mcp/server.py
Test with MCP Inspector
npx @modelcontextprotocol/inspector vikk_mcp/server.py
Claude Desktop Integration
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"vikk-legal": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/vikkai-agentic-server/mcp-server",
"run",
"vikk_mcp/server.py"
],
"env": {
"VIKK_API_URL": "https://lab.vikk.live",
"VIKK_API_KEY": "vk_live_your_key_here"
}
}
}
}
After saving, restart Claude Desktop completely (Cmd+Q on macOS, not just close window).
Claude Code Integration
# In your Claude Code settings or .claude/settings.json
{
"mcpServers": {
"vikk-legal": {
"command": "uv",
"args": ["--directory", "/path/to/mcp-server", "run", "vikk_mcp/server.py"],
"env": {
"VIKK_API_URL": "https://lab.vikk.live",
"VIKK_API_KEY": "vk_live_your_key_here"
}
}
}
}
Available Tools
Document Generation
| Tool | Description |
|---|---|
generate_document |
Create legal documents (demand letters, cease & desist, notices, etc.) |
list_document_templates |
List available document types and required fields |
Chat
| Tool | Description |
|---|---|
chat_with_vikk |
Have a conversation with VIKK Legal AI |
get_session_history |
Retrieve conversation history for a session |
list_chat_sessions |
List recent chat sessions |
PDF Processing
| Tool | Description |
|---|---|
extract_pdf_text |
Extract text from a local PDF file |
Utility
| Tool | Description |
|---|---|
get_api_usage |
Check API usage and rate limits |
Available Resources
| URI | Description |
|---|---|
vikk://templates |
Document templates reference |
vikk://usage |
API usage statistics |
Examples
Generate a Demand Letter
"Generate a demand letter for unpaid rent. The landlord is John Smith at 123 Main St,
Anytown CA 90210. The tenant is Jane Doe at 456 Oak Ave, Anytown CA 90211.
The amount owed is $2,500 for March and April rent."
Chat with VIKK
"Chat with VIKK about how to write a cease and desist letter for trademark infringement."
Extract PDF Text
"Extract the text from /Users/me/Documents/contract.pdf"
Troubleshooting
Server not appearing in Claude Desktop
- Verify the config file path and JSON syntax
- Use absolute paths (not relative)
- Fully restart Claude Desktop (Cmd+Q on macOS)
- Check logs:
tail -f ~/Library/Logs/Claude/mcp*.log
API errors
- Verify VIKK_API_KEY is set correctly
- Check that the API URL is accessible
- Ensure your API key has not expired
- Check rate limits with
get_api_usage
Connection refused
- Verify the VIKK server is running
- Check the API URL is correct (include protocol: http/https)
- Check firewall settings
Development
Project Structure
mcp-server/
├── pyproject.toml # Project configuration
├── README.md # This file
└── vikk_mcp/
├── __init__.py
├── config.py # Environment configuration
├── server.py # Main MCP server with all tools
└── tools/
└── __init__.py
Running Tests
# Test the server responds
echo '{"jsonrpc": "2.0", "method": "tools/list", "id": 1}' | uv run vikk_mcp/server.py
License
MIT License - See LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vikk_legal_mcp-0.1.0.tar.gz.
File metadata
- Download URL: vikk_legal_mcp-0.1.0.tar.gz
- Upload date:
- Size: 52.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0fe5705b286b541cc5b2f14e84428eeeb32cc714216d991f96b7435d4e04f23
|
|
| MD5 |
9d5154e46e3b0db6044ddc3477ec4233
|
|
| BLAKE2b-256 |
3e2c2a092587d3a12f4855d1c89cd7de8bce6e84e57d06cb5b59fa092b1a8b1b
|
File details
Details for the file vikk_legal_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vikk_legal_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de25f14ebf994640fd3454ce85c7cda3e05d952d3abac08aec5272fb841f4c26
|
|
| MD5 |
d796a0df349046d8139a7f2927a8d456
|
|
| BLAKE2b-256 |
f23d47292f1beef490f0f586969628dc36218e789d7c51a40b57bfef64d27bc5
|