TCP Bolivia MCP Server
This server provides tools to search, access, analyze, and manage jurisprudence and resolutions from the Plurinational Constitutional Court (TCP) of Bolivia. Key capabilities include:
Search by party name: Find cases by involved parties.
Search by resolution number and year: Look up specific resolutions.
Free-text jurisprudence search: Search by legal terms or keywords, with automatic query expansion from an integrated Bolivian Legal Dictionary.
Retrieve full text: Get complete resolution content by unique ID.
Search within resolutions: Locate keywords or phrases inside a resolution, returning matching paragraphs with context to save tokens.
Extract fundamentals and ruling: Filter only the legal foundations (Fundamentos Jurídicos) and final ruling (Por Tanto), significantly reducing text.
Download official PDF: Save digitally signed PDF documents.
Extract and cite: Obtain extracts and citations with reproducible references.
Expand context: Retrieve broader context for specific paragraphs or sections.
Verify authenticity: Validate citations against the official TCP database.
Obtain metadata: Access document metadata.
Server diagnostics: Check health, network status, and cache statistics.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TCP Bolivia MCP Server Busca jurisprudencia sobre acción de libertad"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TCP Bolivia MCP V2.0 — Supreme One-Run Production Implementation
TCP Bolivia MCP V2.0 es el servidor oficial de protocolo Model Context Protocol (MCP) para la búsqueda, investigación, extracción de evidencia legal, análisis jurisprudencial y descarga verificada de resoluciones del Tribunal Constitucional Plurinacional (TCP) de Bolivia.
🚀 Novedades Principales en la Versión 2.0
Arquitectura Modular TypeScript: Rediseño completo utilizando el SDK oficial
@modelcontextprotocol/sdkde Anthropic sobre transportestdio.Gobernador de Presupuesto de Tokens: Reducción drástica (~95%) del consumo de tokens en la ventana de chat mediante paquetes de evidencia compactos.
Descubrimiento Completo de Aletheia API: Integración resiliente con firma criptográfica HMAC-SHA256, ordenamiento determinista de parámetros JSON y reintentos exponenciales con jitter.
Diccionario Jurídico Boliviano Integrado: Expansión automática de consultas con términos equivalentes (debida motivación, anticresis, verdad material, non bis in idem).
Referencias Reproducibles e Inmutables: Generación de identificadores estables por párrafo (
tcp:{resolucionId}:{sectionSlug}:p{paragraphNumber}).Formato Estándar MCPB: Distribución mediante paquete bundle
.mcpbpara instalación con un solo clic.
Related MCP server: MCP Legal Chile
📦 Instalación Rápida
Opción A: Paquete MCPB (Claude Desktop)
Descarga el paquete
tcp-bolivia-mcp-v2.0.0.mcpbdesde artifacts/tcp-bolivia-mcp-v2/.Abre Claude Desktop, navega a Configuración > Servidores MCP y selecciona Agregar desde archivo .mcpb.
Opción B: Script Automatizado
Windows (PowerShell):
.\artifacts\tcp-bolivia-mcp-v2\install-windows.ps1macOS / Linux:
chmod +x ./artifacts/tcp-bolivia-mcp-v2/install-macos-linux.sh
./artifacts/tcp-bolivia-mcp-v2/install-macos-linux.sh🛠️ Herramientas Públicas
tcp_investigar_jurisprudencia: Investigación y aplicación de jurisprudencia (Activación automática).tcp_buscar_resoluciones: Búsqueda precisa por número, gestión, partes o materias.tcp_obtener_evidencia: Extracción de extractos y citas con referencias reproducibles.tcp_ampliar_contexto: Ampliación focalizada de párrafos o secciones específicas.tcp_verificar_cita: Verificación de autenticidad de citas contra la base oficial del TCP.tcp_obtener_documento: Obtención de metadatos, descarga de PDF oficial o texto completo bajo demanda.tcp_estado: Diagnóstico de salud, estado de red y estadísticas de caché.
📊 Diagnóstico y Verificación
Para verificar la conectividad con Aletheia y la validez criptográfica en tu equipo:
npm run doctorPara correr las pruebas unitarias e integración:
npm run testPara ejecutar el benchmark de presupuesto de tokens:
npm run benchmark📚 Documentación Técnica Completa
📄 Licencia
Este proyecto está bajo la Licencia MIT.
Available Tools
7 toolsbuscar_en_resolucionA
Busca palabras clave dentro de una resolución del TCP de forma local en tu PC y devuelve únicamente los párrafos coincidentes con su contexto para ahorrar tokens.
Inputs: resolucionId (required), textoABuscar (required).
buscar_jurisprudenciaA
Busca tesis de jurisprudencia y resoluciones por búsqueda de texto libre sobre temas legales (ej. "anticresis", "asistencia familiar").
Inputs: texto (required).
buscar_por_nombreA
Busca causas o expedientes en el TCP de Bolivia por el nombre de las partes involucradas.
Inputs: nombre (required).
buscar_por_resolucionA
Busca resoluciones por número y gestión/año (ej. Resolución 0601/2026-S2).
Inputs: gestion (required), resolucion (required).
descargar_resolucion_pdfA
Descarga el PDF oficial firmado digitalmente de la resolución y lo guarda en la carpeta de Descargas (Downloads) de tu PC.
Inputs: resolucionId (required), nombreArchivo.
obtener_contenido_resolucionA
Obtiene el texto de la resolución completa por su ID (resolucionId). Útil si deseas leer toda la sentencia.
Inputs: resolucionId (required).
obtener_fundamentos_y_falloA
Filtra y extrae solo la parte de Fundamentos Jurídicos y el fallo final (Por Tanto) de una sentencia en base a su ID. Ahorra hasta un 80% de tokens eliminando los antecedentes históricos repetitivos.
Inputs: resolucionId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct search/retrieval operation: by party name, resolution number, free-text jurisprudence, full content, keyword-in-context, extracted sections, and PDF download. The purposes are clearly separated and unlikely to be confused.
All tool names follow a consistent pattern of a Spanish verb in imperative form followed by a descriptive noun phrase, using snake_case throughout. Variations like 'buscar_por_nombre' and 'buscar_jurisprudencia' are minor and still follow the verb-first convention.
Seven tools is within the ideal range for a focused domain. Each tool serves a clear, non-redundant purpose, and the count feels appropriate for a legal document search and retrieval server.
The tool set covers the core lifecycle of searching and accessing resolutions: multiple search entry points, full-text retrieval, targeted extraction, and PDF download. There are no obvious dead ends for a read-only legal research workflow.
Maintenance
Related MCP Connectors
Resolve, search and verify legal citations against the official sources, with provenance.
Case law search, court decisions and súmulas, across indexed public sources (STF, STJ, TST, state co
Verify legal citations and search case law and legislation from your AI assistant.
Search U.S. case law, fetch opinions, and ask matter-aware legal questions over your documents.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides AI assistants with up-to-date legal documents from official sources, enabling accurate legal information retrieval and analysis.20AGPL 3.0
- AlicenseBqualityFmaintenanceConnects AI assistants to Chilean legal sources, enabling citation of official legal texts, search of doctrine, jurisprudence, and rulings.18MIT
- FlicenseNot gradedqualityCmaintenanceEnables querying Chilean Primer Tribunal Ambiental court cases, case files, daily status updates, and documents through natural language, with tools for searching causes, viewing case details, accessing expedientes, reading PDF documents, and checking the daily docket.-
- FlicenseNot gradedqualityCmaintenanceEnables querying Chilean Constitutional Court cases and jurisprudence, including full-text search and detailed records.-