# Türk Hukuku (tüketici + SGK)

> Türk Hukuku (tüketici + SGK) is an open-source MCP server for legal and government. Turkish consumer and social security law answers with sourced articles and deadlines. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, VS Code
- **Repository:** https://github.com/ihsansoycelik/hukuk-mcp
- **MCP Registry name:** io.github.ihsansoycelik/hukuk-mcp
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government)
- **Listing updated:** 2026-11-27

## About

Ask about a purchase, subscription, warranty, or social security problem in plain Turkish and get the applicable rights, time limits, the authority to apply to, and a step-by-step route. Every statement is tied to a specific article of the law or a court decision identifier, so the answer can be checked against the source.

The server ships with its own bundled corpus of 14 laws and a few thousand Court of Cassation and regional appeal decisions. Deadlines and monetary thresholds are calculated by a rule engine rather than generated by a language model, and queries run locally without calling the internet or an AI model.

It is aimed at consumers and insured persons rather than lawyers. Tenancy, employment severance, criminal and family law are explicitly outside its scope, and the server says so instead of improvising an answer.

## Features

- **Sourced legal answers:** Each statement in a reply points to a statute article or a decision identifier.
- **Rule-based deadline calculation:** Limitation periods, monetary thresholds and competent authority are computed by fixed rules.
- **Citation checking:** A tool verifies that cited articles and decisions exist and flags repealed or out-of-scope references.
- **Plain-language decision search:** Court decisions can be searched with everyday wording rather than legal terminology.
- **Offline local operation:** Runs on the user's machine with the corpus bundled, with no queries sent to external servers.
- **Multiple MCP clients:** Installable in Claude, Cursor, VS Code and Codex through stdio or a local HTTP endpoint.

## Good for

- Checking whether a defective purchase can be returned or refunded under Turkish consumer law
- Finding the deadline and authority for filing a consumer complaint
- Understanding unemployment benefit or social security premium debt rights
- Checking the legal citations in a draft letter or petition before sending it
- Searching earlier court decisions on a consumer dispute described in everyday language

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add hukuk-mcp -- npx -y hukuk-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add hukuk-mcp -- npx -y hukuk-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.hukuk-mcp]
command = "npx"
args = ["-y", "hukuk-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user hukuk-mcp npx -- -y hukuk-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "hukuk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hukuk-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `hukuk_sor`: Single-call answer with summary, rules, rights, route and decisions.
- `derinles`: Opens an article, decision or topic by its identifier.
- `ara`: Searches Court of Cassation and regional appeal decisions.
- `hesapla`: Calculates deadlines, thresholds and competent authority.
- `dogrula`: Checks legal citations for existence, repeal and scope.

## FAQ

### Does Türk Hukuku (tüketici + SGK) need an API key or an internet connection to answer queries?

No environment variables are required, and the README states that queries run locally without internet access or a generative model.

### Which areas of law does Türk Hukuku (tüketici + SGK) cover?

Consumer law (including the 6502 law and related TBK, HMK, HAUK and İİK provisions) and social security (5510 and 4447). Tenancy, employment severance, criminal and family law are excluded.

### How do I install Türk Hukuku (tüketici + SGK)?

Install Node.js 22.13 or later, then run npx -y hukuk-mcp, or add the JSON or TOML configuration shown for your MCP client.

### Is the output legal advice?

No. The project states it does not replace a lawyer and recommends consulting one for serious matters.

### Is Türk Hukuku (tüketici + SGK) free?

Yes. Türk Hukuku (tüketici + SGK) is open source, so you can use and self-host it for free.

### How do I add Türk Hukuku (tüketici + SGK) to Claude Code?

Run this command in your terminal: claude mcp add hukuk-mcp -- npx -y hukuk-mcp

### What are the best alternatives to Türk Hukuku (tüketici + SGK)?

The closest alternatives to Türk Hukuku (tüketici + SGK) are SmartHukuk Legal Research, Mütalaa MCP, TurkActuary, Tr Eli MCP and Türk Hukuku İçtihat.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [SmartHukuk Legal Research](https://ai-powered.com/mcp/smarthukuk-legal-research): SmartHukuk Legal Research is an MCP server for legal and government.
- [Mütalaa MCP](https://ai-powered.com/mcp/mutalaa-mcp): Mütalaa MCP is a free MCP server for legal and government.
- [TurkActuary](https://ai-powered.com/mcp/turkactuary): TurkActuary is an open-source MCP server for legal and government.
- [Tr Eli MCP](https://ai-powered.com/mcp/tr-eli-mcp): Tr Eli MCP is an open-source MCP server for legal and government.
- [Türk Hukuku İçtihat](https://ai-powered.com/mcp/turk-hukuku-ictihat): Türk Hukuku İçtihat is an open-source MCP server for legal and government.
- [Doktor](https://ai-powered.com/mcp/doktor-2): Doktor is an open-source MCP server for legal and government.
- [LexVira](https://ai-powered.com/mcp/lexvira): LexVira is a freemium MCP server for legal and government.
- [Türk Hukuku Mevzuat](https://ai-powered.com/mcp/turk-hukuku-mevzuat): Türk Hukuku Mevzuat is an open-source MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/turk-hukuku-tuketici-sgk
