TitahMCP API docs Request a key
Model Context Protocol

Indonesian law in your AI assistant.

Add this address to your AI assistant and sign in with your Titah API key. Then send your questions about Indonesian law to your assistant. The assistant searches and reads the regulations, and it gives the source of each answer.

https://oauth-staging.titah.legal/mcp

Connect your app

You use one key: your Titah API key. It starts with titah_sk_. Get it in the Titah dashboard (Organisation, API keys), or request one. Select your app, then copy the text. Write your key where you see YOUR_TITAH_KEY.

Open Settings, then Connectors. Select Add custom connector. Type Titah as the name and paste this address. Select Add, then Connect. On the Titah page, type your key and select Allow. This works in claude.ai and in Claude Desktop.

https://oauth-staging.titah.legal/mcp

Type this command in a terminal. To sign in on the Titah page with no header, remove the --header part. Then type /mcp in Claude Code and select titah.

claude mcp add --transport http titah https://oauth-staging.titah.legal/mcp --header "Authorization: Bearer YOUR_TITAH_KEY"

Turn on developer mode: Settings, then Apps and Connectors, then Advanced settings. Add a new connector. Type Titah as the name, paste this address and select OAuth. On the Titah page, type your key and select Allow.

https://oauth-staging.titah.legal/mcp

Add this text to the file .cursor/mcp.json in your home folder.

{
  "mcpServers": {
    "titah": {
      "url": "https://oauth-staging.titah.legal/mcp",
      "headers": { "Authorization": "Bearer YOUR_TITAH_KEY" }
    }
  }
}

Add this text to the file .vscode/mcp.json in your project. VS Code asks for your key one time and keeps it safe.

{
  "inputs": [
    { "type": "promptString", "id": "titah-key", "description": "Titah API key", "password": true }
  ],
  "servers": {
    "titah": {
      "type": "http",
      "url": "https://oauth-staging.titah.legal/mcp",
      "headers": { "Authorization": "Bearer ${input:titah-key}" }
    }
  }
}

Add this text to the file .codeium/windsurf/mcp_config.json in your home folder.

{
  "mcpServers": {
    "titah": {
      "serverUrl": "https://oauth-staging.titah.legal/mcp",
      "headers": { "Authorization": "Bearer YOUR_TITAH_KEY" }
    }
  }
}

Add this text to the file .gemini/settings.json in your home folder.

{
  "mcpServers": {
    "titah": {
      "httpUrl": "https://oauth-staging.titah.legal/mcp",
      "headers": { "Authorization": "Bearer YOUR_TITAH_KEY" }
    }
  }
}

Add this text to the file .codex/config.toml in your home folder. Then set the variable TITAH_KEY to your key in your shell.

[mcp_servers.titah]
url = "https://oauth-staging.titah.legal/mcp"
bearer_token_env_var = "TITAH_KEY"

Add this text to the settings file of Zed (settings.json).

{
  "context_servers": {
    "titah": {
      "url": "https://oauth-staging.titah.legal/mcp",
      "headers": { "Authorization": "Bearer YOUR_TITAH_KEY" }
    }
  }
}

In Cline, open MCP Servers, then Configure, then Configure MCP Servers. Add this text to that file.

{
  "mcpServers": {
    "titah": {
      "type": "streamableHttp",
      "url": "https://oauth-staging.titah.legal/mcp",
      "headers": { "Authorization": "Bearer YOUR_TITAH_KEY" }
    }
  }
}

The address for the Titah team

This part shows only on the test system of Titah. The team address is behind Cloudflare Access. Send the two Access headers of the Access token 'titah: mcp clients', and your key. The values are in the password manager. Do not put them in a chat, a commit or a log. Apps that sign in with OAuth use the address at the top of this page.

claude mcp add --transport http titah-staging https://staging-mcp.titah.legal/mcp \
  --header "CF-Access-Client-Id: <id>" \
  --header "CF-Access-Client-Secret: <secret>" \
  --header "Authorization: Bearer YOUR_TITAH_KEY"

Test it

Send this question to your assistant. It uses the tools below and names its sources.

Use Titah to find UU 13 tahun 2003. Is it in force, and which regulations changed it?

If it does not work

What you seeWhat to do
Error 401The key is missing or incorrect. Send Authorization: Bearer YOUR_TITAH_KEY. Copy the key again from the dashboard. A revoked key stops in one minute.
A Cloudflare sign-in page, or a 302 to cloudflareaccess.comYou used the team address without the Access headers. Use the address at the top of this page.
Error 429Too many calls in one minute. Wait the number of seconds in retry-after, then try again.
'Key not accepted' on the Titah pageThe key is incorrect or revoked, or its organisation is not active. Copy the key again, or write to hello@titah.legal.
A timeout, or no answerTry again after 10 seconds. If it continues, write to hello@titah.legal with the time of the request.

The seven tools

Six tools only read. They cannot change the data. Each record gives the address of its publisher (source_url). The seventh tool sends a report of a problem to the Titah team.

Search Indonesian regulations

search_regulations

Finds regulations by a topic, a citation or the usual name of a law. A topic works in Indonesian, English, Japanese, Chinese and Korean.

Read one regulation

get_regulation

Reads one regulation: its status, its articles, or what changed it.

Watch for new and changed regulations

monitor_changes

Lists the regulations that Titah added or read again, the newest first.

What Titah holds: counts, types, years

corpus_info

Tells the counts, the regulation types and the years that Titah holds.

One institution: its law, its changes, its news

get_institution

Reads one institution that makes law: its contacts, its counts, what changed in its law, and its news headlines.

The regulations of one institution

list_institution_regulations

Lists the regulations of one institution, the highest level of law first, then the newest.

Report a problem to Titah

send_feedback

Reports a problem to the Titah team: a missing feature, a bug, wrong data or unclear docs.

Titah is not an official source of law. Titah does not give legal advice. The Indonesian text from the publisher is the authority. A machine makes the translations, and Titah shows this on each one.

PT Teman Bisnis Digital makes Titah. Contact: hello@titah.legal