# Dayanak

> Dayanak is an open-source MCP server for legal and government. Turkish court decisions and legislation search with citation checking for AI assistants. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://avfatihsozer.com/projeler/dayanak
- **Repository:** https://github.com/afsozer/dayanak
- **MCP Registry name:** io.github.afsozer/dayanak
- **Categories:** legal and government
- **Listing updated:** 2026-11-16

## About

Dayanak was built by a Turkish lawyer so that AI assistants stop inventing case numbers, chambers and statute articles. The assistant does not write a decision from memory: it searches, fetches the full text and compares each citation against that text. Decisions without retrievable full text are kept out of quotes and drafts.

The website describes a local corpus of about 11.1 million court decisions from the Court of Cassation, Council of State, Constitutional Court and appeal courts, plus roughly 305,000 articles of legislation. Search combines full-text and semantic matching, and live official sources such as Bedesten and mevzuat.gov.tr can be queried for newer material.

The author says it is used for the firm's own research as a single-user setup rather than a public service. The source is on GitHub under AGPL-3.0 and it installs from PyPI with uvx or pipx. The README lists 12 core tools by default and 36 more with a full tool profile.

## Features

- **Citation-safe retrieval:** Citations are checked against the full text of the decision rather than taken from the model's memory.
- **Hybrid search:** Keyword full-text search and semantic search results are merged into one list.
- **Local corpus:** Millions of decisions and legislation articles sit in a single SQLite file, with no network needed for local queries.
- **Live official sources:** Adapters query Bedesten, the Constitutional Court, Council of State, mevzuat.gov.tr and the Official Gazette.
- **Amendment records:** Tracks article amendments so older and current wording of a provision can be told apart.
- **Tool profiles:** 12 core tools by default, with an environment variable to enable the full set of 48.

## Good for

- Verify case citations before they go into a petition
- Find decisions on a legal issue worded differently from the query
- Look up the current text of a Turkish statute article
- Check which decisions a draft relies on have retrievable full text

## Install

### Claude Code (Terminal)

```sh
claude mcp add dayanak -- uvx dayanak
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "dayanak": {
      "command": "uvx",
      "args": [
        "dayanak"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "dayanak": {
      "command": "uvx",
      "args": [
        "dayanak"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "dayanak": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "dayanak"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "dayanak": {
      "command": "uvx",
      "args": [
        "dayanak"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "dayanak": {
      "command": "uvx",
      "args": [
        "dayanak"
      ]
    }
  }
}
```

## FAQ

### Does it need the large local corpus?

No. The quick install works without it and queries official sources live; only the local-corpus search tools return empty results.

### How is it installed?

Run it with uvx --from dayanak dayanak-server or install with pipx; it needs Python 3.11 or newer.

### What licence is it under?

AGPL-3.0, per the project page and repository.

### What was it called before?

The project was previously named Emsal MCP; the old emsal-mcp package now installs Dayanak.

### Is Dayanak free?

Yes. Dayanak is open source, so you can use and self-host it for free.

### How do I add Dayanak to Claude Code?

Run this command in your terminal: claude mcp add dayanak -- uvx dayanak

### What are the best alternatives to Dayanak?

The closest alternatives to Dayanak are NY LLC Publication (FileMyPublication), TribuJus, SupplyClub Catalog, SynomosAI Governance MCP and MedXpert 标准检索连接器.

## Alternatives

- [NY LLC Publication (FileMyPublication)](https://ai-powered.com/mcp/ny-llc-publication-filemypublication): NY LLC Publication (FileMyPublication) is a free MCP server for legal and government.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [SupplyClub Catalog](https://ai-powered.com/mcp/supplyclub-catalog): SupplyClub Catalog is a free MCP server for legal and government.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.
- [MedXpert 标准检索连接器](https://ai-powered.com/mcp/medxpert-2): MedXpert 标准检索连接器 is a free MCP server for legal and government.
- [SigPen](https://ai-powered.com/mcp/sigpen): SigPen is a freemium MCP server for files and documents.
- [SOMMON Office](https://ai-powered.com/mcp/sommon-office): SOMMON Office is a paid MCP server for communication.
- [MedXpert 全球法规连接器 (reg-connector)](https://ai-powered.com/mcp/medxpert-reg-connector): MedXpert 全球法规连接器 (reg-connector) is a free MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/dayanak
