Skip to content

feat: add Riigiteataja MCP server - #3

Open
stefanoamorelli wants to merge 3 commits into
mainfrom
feat/riigiteataja-mcp
Open

feat: add Riigiteataja MCP server#3
stefanoamorelli wants to merge 3 commits into
mainfrom
feat/riigiteataja-mcp

Conversation

@stefanoamorelli

@stefanoamorelli stefanoamorelli commented Sep 14, 2025

Copy link
Copy Markdown
Owner

Summary

Add Model Context Protocol (MCP) server for Estonian legal database Riigiteataja.ee, enabling AI assistants to access Estonian legislation and legal documents.

Features

  • 🏛️ Legal Document Access: Search and retrieve Estonian legal acts and regulations
  • 🌍 Bilingual Support: Access documents in both Estonian and English
  • 📚 FAQ Integration: Built-in legal FAQ system for common queries
  • 🔍 Advanced Search: Search by keywords, act types, date ranges, and more
  • 🚀 High Performance: Efficient caching and optimized API usage
  • 🐳 Docker Ready: Complete containerization support

MCP Tools Provided

  • search_laws: Search Estonian legal database with advanced filters
  • fetch_document: Retrieve specific legal documents by ID
  • search_english_translations: Find available English translations
  • fetch_faq: Access legal FAQ system
  • search_faq: Query FAQ database

Integration

Compatible with Claude Desktop and other MCP-enabled applications:

{
  "mcpServers": {
    "riigiteataja": {
      "command": "node", 
      "args": ["path/to/mcp/riigiteataja/dist/index.js"]
    }
  }
}

Technical Stack

  • Backend: TypeScript + Node.js
  • Protocol: Model Context Protocol (MCP) v1.0
  • API Integration: Riigiteataja.ee official API + hybrid web access
  • Testing: Comprehensive test suite with Vitest
  • Security: Security policy and vulnerability management

Dependencies

Uses the @estonia-ai-kit/riigiteataja-api-client library for core functionality (see PR #2).

Deployment

  • Local development and production builds
  • Docker support with multi-stage builds
  • CI/CD pipeline integration
  • Security scanning and dependency updates

- Add Model Context Protocol server for Riigiteataja.ee integration
- Implement comprehensive legal document search and retrieval tools
- Support bilingual (Estonian/English) document access
- Include FAQ system for common legal queries
- Add Docker support for containerized deployment
- Complete CI/CD pipeline and security documentation
- Full TypeScript implementation with comprehensive testing
@github-actions github-actions Bot added documentation Improvements or additions to documentation tests size/XL labels Sep 14, 2025
- Align @vitest/coverage-v8 version with vitest 2.x in MCP server
- Update root package-lock.json to resolve dependency conflicts
- Fix CI build failures caused by version mismatches
Repository owner deleted a comment from github-actions Bot Sep 14, 2025
Repository owner deleted a comment from github-actions Bot Sep 14, 2025
Repository owner deleted a comment from github-actions Bot Sep 14, 2025
Repository owner deleted a comment from github-actions Bot Sep 14, 2025
Repository owner deleted a comment from github-actions Bot Sep 14, 2025
Repository owner deleted a comment from github-actions Bot Sep 14, 2025
- Update root package-lock.json to include MCP server dependencies
- Ensure all CI builds can resolve dependencies correctly
@github-actions

Copy link
Copy Markdown

PR Size Analysis

❌ PR size is XL (> 1000 lines). Please break this into smaller PRs.

📊 Stats:

  • Files changed: 19
  • Lines added: 2605
  • Lines deleted: 0
  • Total changes: 2605

@github-actions

Copy link
Copy Markdown

📁 Changed Files Summary

  • 📝 Documentation: ✅
  • 💻 Source Code: ✅
  • 🧪 Tests: ✅
  • ⚙️ Config: ➖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/XL tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant