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. Covers US federal and 50-state law (USC, CFR, state legislation, CourtListener case law). Ask AI-powered legal questions, search statutes, and ground answers in primary sources, all from your AI tools.
Quick Start
Prerequisites
Sign up at vaquill.ai to get your API key.
Claude.ai (Web)
No installation needed. Add as a remote MCP server in Claude.ai Settings > Integrations:
Option A: Simple URL (API key in path)
https://mcp.vaquill.ai/s/vq_key_your_key_here
Option B: Bearer token (recommended)
URL: https://mcp.vaquill.ai/s/_
Token: vq_key_your_key_here
Available on Claude Pro, Max, Team, and Enterprise plans.
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
Remote (no install):
claude mcp add-json vaquill '{"type":"http","url":"https://mcp.vaquill.ai/s/_","headers":{"Authorization":"Bearer vq_key_your_key_here"}}'
Local (via uvx):
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
General
| Tool | Description | Credits |
|---|---|---|
ask_legal_question |
AI-powered legal Q&A across USC, CFR, 50-state law, and CourtListener case law. Standard (fast) or deep (multi-hop) modes. | 15 - 30 |
get_pricing |
Get current API credit pricing (no auth required). | Free |
US law (USC + CFR)
| Tool | Description | Credits |
|---|---|---|
search_us_statutes |
Semantic search across the United States Code (USC) and Code of Federal Regulations (CFR). Filter by corpusType and titleNumber. |
4 |
get_us_statute_section |
Metadata for a specific USC/CFR section by act_id (citation, title hierarchy, links). |
2 |
get_us_statute_section_text |
Full HTML + plain text of a USC or CFR section. | 6 |
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:
- "What does 17 CFR 240.10b-5 say about insider trading?"
- "Find USC sections on equal protection under the Fourteenth Amendment"
- "Summarize FRCP Rule 12(b)(6) and recent SDNY case law applying it" (uses deep mode)
- "What are the federal penalties for wire fraud under 18 USC 1343?"
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. The credit costs in the tables above are current at
the time of writing; the get_pricing tool and each tool's own description
always reflect the live price, so treat those as authoritative if they differ.
1 credit = $0.01 USD
License
MIT
Project details
Release history Release notifications | RSS feed
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 vaquill_mcp-0.1.2.tar.gz.
File metadata
- Download URL: vaquill_mcp-0.1.2.tar.gz
- Upload date:
- Size: 104.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea7d19166e20bbf365db6bb2d271223940092abb096f579c2f2d6a9968fbfcbe
|
|
| MD5 |
18133fd8d97187e5100f8747cf265483
|
|
| BLAKE2b-256 |
8ecc4fcf1d5cc057d4d31b5b7748a3331fef0a061d5db580b61a75c694509809
|
File details
Details for the file vaquill_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: vaquill_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6096a645d5adf4faf9304cf2beb76c6cf13d8e9ad717f26918440e6addd9411f
|
|
| MD5 |
a4aa3b876da2a3124612dbf250efb290
|
|
| BLAKE2b-256 |
45a97d84a7b93521f01749616eefb7fd4809b429a626c07cc628768d4d00789a
|