Skip to main content

MCP server for Vaquill legal research API - search 20M+ Indian court judgments via AI

Project description

vaquill-mcp

MCP server for Vaquill legal research API. Search 20M+ Indian court judgments, ask AI-powered legal questions, resolve citations, and traverse citation networks — all from your AI tools.

Quick Start

Prerequisites

Sign up at vaquill.ai to get your API key.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "vaquill": {
      "command": "uvx",
      "args": ["vaquill-mcp"],
      "env": {
        "VAQUILL_API_KEY": "vq_key_your_key_here"
      }
    }
  }
}

Claude Code

claude mcp add vaquill -- uvx vaquill-mcp
# Then set the env var in your shell: export VAQUILL_API_KEY=vq_key_...

Or add to .claude/settings.json:

{
  "mcpServers": {
    "vaquill": {
      "command": "uvx",
      "args": ["vaquill-mcp"],
      "env": {
        "VAQUILL_API_KEY": "vq_key_your_key_here"
      }
    }
  }
}

Cursor

Add to Cursor Settings > MCP Servers:

{
  "mcpServers": {
    "vaquill": {
      "command": "uvx",
      "args": ["vaquill-mcp"],
      "env": {
        "VAQUILL_API_KEY": "vq_key_your_key_here"
      }
    }
  }
}

VS Code (Copilot)

Add to .vscode/settings.json:

{
  "mcp": {
    "servers": {
      "vaquill": {
        "command": "uvx",
        "args": ["vaquill-mcp"],
        "env": {
          "VAQUILL_API_KEY": "vq_key_your_key_here"
        }
      }
    }
  }
}

Windsurf

Add to ~/.windsurf/settings.json:

{
  "mcpServers": {
    "vaquill": {
      "command": "uvx",
      "args": ["vaquill-mcp"],
      "env": {
        "VAQUILL_API_KEY": "vq_key_your_key_here"
      }
    }
  }
}

Available Tools

Tool Description Credits
ask_legal_question AI-powered legal Q&A grounded in court judgments. Standard (fast) or deep (thorough) modes. 0.5 - 2.0
search_legal_cases Boolean keyword search with AND/OR/NOT operators. Filter by court, year, country. 1.0
quick_search Fast compact search returning top 3-5 results with essentials only. 0.1
resolve_citation Resolve any citation format (SCC, AIR, SCR, MANU) to canonical case record. 0.1
search_cases_by_citation Search cases by citation text or case name with filters. 0.1
lookup_case Full case details with citation treatment stats (followed, overruled, etc.). 0.1
get_citation_network Traverse citation graph: which cases cite/are cited by a case. 1-3 hops. 0.2
get_pricing Get current API credit pricing (no auth required). Free

Environment Variables

Variable Required Default Description
VAQUILL_API_KEY Yes - API key (vq_key_...) from vaquill.ai
VAQUILL_BASE_URL No https://api.vaquill.ai API base URL
VAQUILL_TIMEOUT No 120 Request timeout in seconds

Example Usage

Once configured, you can ask your AI assistant things like:

  • "Search for Supreme Court cases on Section 302 IPC"
  • "What is the legal test for negligence in Indian tort law?"
  • "Resolve the citation AIR 1978 SC 597"
  • "Look up the case Maneka Gandhi vs Union of India and show treatment stats"
  • "Show the citation network around ADM Jabalpur vs Shivkant Shukla"
  • "Compare murder and culpable homicide under IPC" (uses deep mode)

Development

# Clone and install
git clone https://github.com/Vaquill-AI/vaquill-mcp.git
cd vaquill-mcp
uv sync --all-extras

# Run locally
VAQUILL_API_KEY=vq_key_... uv run vaquill-mcp

# Run tests
uv run pytest

# Test with FastMCP inspector
uv run fastmcp dev src/vaquill_mcp/server.py

How It Works

This package is a thin MCP wrapper around the Vaquill Developer API. At startup, it fetches the OpenAPI spec from the live API and auto-generates MCP tools using FastMCP. Tool names and descriptions are customized for optimal LLM performance.

Because the spec is fetched at startup (not bundled), tools automatically reflect any API changes without a package update.

Credits & Pricing

API calls consume credits. Check current pricing at vaquill.ai or use the get_pricing tool.

1 credit = $0.10 USD = 10 INR

License

MIT

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

vaquill_mcp-0.1.1.tar.gz (94.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vaquill_mcp-0.1.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file vaquill_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: vaquill_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 94.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.2

File hashes

Hashes for vaquill_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4e546ce8a8ac7363e47800ecc414819bdd59ed005a5a4f1482ce55e5c099e780
MD5 633ff0e278d4a6bfe96063bcc28cb68a
BLAKE2b-256 6267faae8721982019b1e656a537e3ba8493d1e071db9bb66a016b9db373751e

See more details on using hashes here.

File details

Details for the file vaquill_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vaquill_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe6745325a8b8323d4ef075fb3e0ec11ba4f6c5298b853bb0cd588a0c6da670d
MD5 378a980e14a1721c36c4ac3f0bc2e6b6
BLAKE2b-256 73f3d6837b1bd19eadeb18d2141ddd8ddcfc1d46482b72d692e18d914eb5cf02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page