This MCP server provides seamless access to various Turkish legal databases through the Model Context Protocol (MCP), allowing you to search and retrieve legal documents from major Turkish courts and regulatory bodies. It works with Claude Desktop and other MCP-compatible clients like 5ire.
Install prerequisites:
Install uv:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
curl -LsSf https://astral.sh/uv/install.sh | sh
Setup in 5ire:
yargimcp
Yargı MCP
uvx yargi-mcp
mcpServers
section in claude_desktop_config.json
:
{
"mcpServers": {
"Yargı MCP": {
"command": "uvx",
"args": [
"yargi-mcp"
]
}
}
}
Install prerequisites as described above
Edit the Gemini CLI settings file:
~/.gemini/settings.json
%USERPROFILE%\.gemini\settings.json
Add the following mcpServers
configuration:
{
"theme": "Default",
"selectedAuthType": "###",
"mcpServers": {
"yargi_mcp": {
"command": "uvx",
"args": [
"yargi-mcp"
]
}
}
}
The Yargı MCP server provides 19 optimized tools for interacting with Turkish legal databases:
You can search for legal documents from various Turkish courts and institutions:
You can ask Claude or other LLM clients to use these tools with natural language requests like:
The MCP server supports various advanced search features:
You can also run Yargı MCP as a web service:
# Install ASGI dependencies
pip install yargi-mcp[asgi]
# Start as web service
python run_asgi.py
# or
uvicorn asgi_app:app --host 0.0.0.0 --port 8000
This enables HTTP access to MCP tools, cloud deployment options, and Docker support through FastAPI integration.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "Yarg-MCP" '{"command":"uvx","args":["--from","git+https://github.com/saidsurucu/yargi-mcp","yargi-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"Yarg\u0131 MCP": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/saidsurucu/yargi-mcp",
"yargi-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"Yarg\u0131 MCP": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/saidsurucu/yargi-mcp",
"yargi-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect