How ansvar-systems/greek-law-mcp works
Greek Law MCP Server exposes Greek statute research and EU-law cross-reference tools to MCP clients. A client request enters through stdio or HTTP, is dispatched by the shared registry to a research tool, and returns database-backed results; tools also cover citation validation and formatting, legal-stance aggregation, currency checks, and EU implementation/compliance. The README documents these capabilities, while sampled source confirms the stdio/HTTP registration pattern and specific search queries. Several tool implementations were not sampled, so their internal calls are not expanded here.
Main entry points: registry.ts Tool registry · index.ts Stdio server · mcp.ts HTTP endpoints · search-legislation.ts Legislation search
Components 18
MCP access
- Stdio server
src/index.ts - HTTP endpoints
api/mcp.ts - Tool registry
src/tools/registry.ts
Greek law research
- Legislation search
src/tools/search-legislation.ts - Provision retrieval
src/tools/get-provision.ts - Citation validation
src/tools/validate-citation.ts - Legal stance
src/tools/build-legal-stance.ts - Currency check
src/tools/check-currency.ts - Citation formatting
src/tools/format-citation.ts - Source catalogue
src/tools/list-sources.ts - Coverage and status
src/tools/about.ts
EU law integration
- EU implementation search
src/tools/search-eu-implementations.ts - Statute EU basis
src/tools/get-eu-basis.ts - Greek implementations
src/tools/get-greek-implementations.ts - Provision EU basis
src/tools/get-provision-eu-basis.ts - EU compliance
src/tools/validate-eu-compliance.ts
Legal corpus
- SQLite corpus
data/database.db
Other components
- MCP client
Connections 19
- MCP client → Stdio server: sends MCP requests
- MCP client → HTTP endpoints: sends MCP requests
- Stdio server → Tool registry: registers tools
- HTTP endpoints → Tool registry: registers tools
- Tool registry → Legislation search: dispatches search
- Tool registry → Provision retrieval: dispatches retrieval
- Tool registry → Citation validation: dispatches validation
- Tool registry → Legal stance: dispatches aggregation
- Tool registry → Currency check: dispatches status check
- Tool registry → Citation formatting: dispatches formatting
- Tool registry → Source catalogue: dispatches listing
- Tool registry → Coverage and status: dispatches information
- Tool registry → EU implementation search: dispatches search
- Tool registry → Statute EU basis: dispatches lookup
- Tool registry → Greek implementations: dispatches lookup
- Tool registry → Provision EU basis: dispatches lookup
- Tool registry → EU compliance: dispatches validation
- Legislation search → SQLite corpus: queries provisions
- EU implementation search → SQLite corpus: queries EU references