# TurkActuary

> TurkActuary is an open-source MCP server for legal and government. Turkish insurance law search and actuarial calculators for AI agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/afsharid/turkactuary-mcp
- **MCP Registry name:** io.github.afsharid/turkactuary
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government), [insurance](https://ai-powered.com/categories/insurance)
- **Listing updated:** 2026-11-23

## About

TurkActuary is a local MCP server for Turkish insurance work. Its search tool covers consolidated insurance legislation including Law 5684, regulations and communiqués, 16 explanatory notes and 49 selected Court of Cassation decisions, 827 passages in all. Search is hybrid, using BM25 plus a local Qwen3 embedding model when one is running, and falls back to BM25 alone.

The calculators include present value, annuities, life insurance, chain ladder and Bornhuetter-Ferguson reserving, combined ratio, GLMs, and compensation for loss of earning capacity or loss of support following Court of Cassation practice. Every compensation result lists its assumptions and the decisions it relies on. Calculations use Decimal arithmetic and are tested.

The server runs offline, writes no files and downloads no models. The text is in Turkish with an English section, and it works with LM Studio, Claude Code, Codex, VS Code, Claude Desktop and Cursor. It is decision support, not an expert report.

## Features

- **Legislation and case search:** Searches insurance law, notes and 49 Court of Cassation decisions across 827 passages.
- **Reserving methods:** Chain ladder and Bornhuetter-Ferguson claims reserving with paid or incurred triangles.
- **Life and annuity maths:** Present value, annuities, term life insurance and life-contingent cash flow projections.
- **Compensation calculators:** Loss of earning capacity and loss of support, with assumptions and decision IDs listed.
- **Minimum wage table:** Monthly minimum wage 2008 to 2026, gross and net.
- **Offline and local:** Runs from a Python package with no network access or file writes.

## Good for

- Find the provision in Turkish insurance law that applies to a question
- Estimate claims reserves from a loss triangle
- Calculate bodily injury compensation under Court of Cassation practice
- Compute combined ratio and portfolio metrics
- Support an actuarial review with sourced legal references

## Install

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

```sh
claude mcp add turkactuary -- uvx turkactuary-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": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "turkactuary": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "turkactuary-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 turkactuary -- uvx turkactuary-mcp
```

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

```toml
[mcp_servers.turkactuary]
command = "uvx"
args = ["turkactuary-mcp"]
```

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

```json
{
  "mcpServers": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user turkactuary uvx -- turkactuary-mcp

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

```json
{
  "mcpServers": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-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": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-mcp"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-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": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-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": {
    "turkactuary": {
      "command": "uvx",
      "args": [
        "turkactuary-mcp"
      ]
    }
  }
}
```

## Tools

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

- `mevzuat_ara`: Searches insurance legislation, explanatory notes and selected Court of Cassation decisions
- `belge_getir`: Returns the full text of a passage by its ID
- `present_value`: Present value calculation
- `annuity`: Annuity calculation
- `life_insurance_pv`: Term life insurance present value
- `chain_ladder`: Claims reserve by chain ladder
- `bornhuetter_ferguson`: Claims reserve by Bornhuetter-Ferguson
- `portfolio_metrics`: Frequency, severity, pure premium and loss ratio
- `combined_ratio`: Combined ratio
- `life_annuity_pv`: Life-contingent annuity present value
- `life_cashflow_projection`: Life policy cash flow projection
- `xl_layer_recovery`: Excess-of-loss layer recovery
- `credibility_estimate`: Credibility estimate
- `earned_exposure`: Earned exposure
- `poisson_glm`: Frequency GLM
- `gamma_severity_glm`: Severity GLM
- `is_goremezlik`: Permanent or temporary loss of earning capacity compensation
- `destekten_yoksun_kalma`: Loss of support compensation per beneficiary
- `asgari_ucret`: Monthly minimum wage 2008 to 2026, gross and net

## FAQ

### How do I install TurkActuary?

Run it with uvx turkactuary-mcp, install the PyPI package, or clone the repository. Python 3.11 or later is needed.

### Does TurkActuary need internet or an API key?

No. The server does not use the network, and the corpus and tables ship inside the package.

### Which language does TurkActuary use?

The documentation and legal corpus are Turkish, with an English section.

### Can TurkActuary replace an expert report?

No. The tools are decision support and do not replace an expert or authority opinion.

### Which model should I use?

A model that is strong at tool calling; large models are recommended, around 27B parameters and up.

### Is TurkActuary free?

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

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

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

### What are the best alternatives to TurkActuary?

The closest alternatives to TurkActuary are China Law MCP, x402 Micropayments MCP, USPTO & EPO Patent Claims, Family & Litigation MCP, Dosyai and Fed Contracts.

## 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

- [China Law MCP](https://ai-powered.com/mcp/china-law-mcp): China Law MCP is an open-source MCP server for legal and government.
- [x402 Micropayments MCP](https://ai-powered.com/mcp/x402-micropayments-mcp): x402 Micropayments MCP is a paid MCP server for finance and payments.
- [USPTO & EPO Patent Claims, Family & Litigation MCP](https://ai-powered.com/mcp/uspto-and-epo-patent-claims-family-and-litigation-mcp): USPTO & EPO Patent Claims, Family & Litigation MCP is a freemium MCP server for legal and government.
- [Dosyai](https://ai-powered.com/mcp/dosyai): Dosyai is a free MCP server for legal and government.
- [Fed Contracts](https://ai-powered.com/mcp/fed-contracts): Fed Contracts is a free MCP server for legal and government.
- [Fairhaul Contract Rerating](https://ai-powered.com/mcp/fairhaul-contract-rerating): Fairhaul Contract Rerating is an MCP server for logistics.
- [Virtual Court Forms](https://ai-powered.com/mcp/virtual-court-forms): Virtual Court Forms is a free MCP server for legal and government.
- [forms.](https://ai-powered.com/mcp/forms-3): forms. is a paid MCP server for legal and government.

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