Connect AI to Indonesian law
Choose your AI client, copy the MCP setup, then sign in with Pasal.id. Start with Claude, Codex, ChatGPT, Cursor, Windsurf, or VS Code.
MCP (Model Context Protocol) is an open standard that lets AI assistants access external data like Pasal.id safely.
Checking connection status…
Claude Desktop & Claude
The easiest way to connect — no terminal needed. Open Settings > Connectors > Add custom connector in Claude Desktop or claude.ai, then paste this URL:
https://mcp.pasal.id/mcpClick Connect and sign in with your Pasal.id account. Then enable the Pasal.id connector from the + button in a new chat. If the tools stop responding after a few hours, your session has expired — open Settings > Connectors and reconnect.
Open Claude connector settingsClaude Code
Run this command in Claude Code terminal:
claude mcp add --transport http pasal-id https://mcp.pasal.id/mcpClaude Code will open a browser window so you can log in and approve access.
Codex CLI & App
Run these two commands in Terminal. The Codex app uses the same config after you reopen it:
- 1Add the MCP server
codex mcp add pasal-id --url https://mcp.pasal.id/mcp - 2Sign in via OAuth
codex mcp login pasal-id
codex mcp login opens your browser for Pasal.id sign-in. After that, Codex CLI and the Codex app can use Pasal.id tools.
Personal token (CI / scripts)
For browserless shells, CI, or clients that do not yet support OAuth, use a personal token. Create one in Account → API & MCP access.
Set PASAL_MCP_TOKEN in your shell or secret manager, then run one of the commands below.
claude mcp add --transport http pasal-id https://mcp.pasal.id/mcp --header "Authorization: Bearer ${PASAL_MCP_TOKEN}"codex mcp add pasal-id --url https://mcp.pasal.id/mcp --bearer-token-env-var PASAL_MCP_TOKENSee MCP in Action
Auto demo: one AI assistant runs the Pasal.id v2 workflow, from search or law resolution to reading legal text.
Example: has the ITE Law been amended?
The demo will resolve the law, fetch context, then read the relevant text before answering.
Other MCP clients
Using a client other than Claude or Codex? Pick one below to see the config location, format, and verification step.
Cursor
OAuthCursor (v1.0+) supports OAuth for remote MCP: save the token-free config and Cursor opens the browser for Pasal.id sign-in. A PASAL_MCP_TOKEN is only needed for scripted setups.
- Open from
- Settings > MCP > Add Server
- Config
- ~/.cursor/mcp.json atau .cursor/mcp.json
Cursor config (OAuth)
{
"mcpServers": {
"pasal-id": {
"url": "https://mcp.pasal.id/mcp"
}
}
}Verify: After signing in via the browser, refresh Cursor's MCP list, open Available Tools, then confirm the six Pasal.id v2 tools appear.
What is MCP?
Model Context Protocol (MCP) is an open standard that allows AI assistants to securely access external data.
With MCP, an AI assistant can search regulations, resolve references to law_id, read text with selectors, search Constitutional Court decisions, and report data problems directly from the Pasal.id database.
Learn more about MCP →Proof, not slogans
See the methodology behind Pasal.id's provenance, legal status, structure parsing, verification workflow, and data-correction loop.
How It Works
Type a legal question
Ask your AI assistant anything about Indonesian law, in everyday language.
MCP navigates the v2 workflow
The AI assistant calls Pasal.id tools to resolve a law, fetch context, or search when the reference is unclear.
Read text and context
Pasal.id returns official text, summaries, outlines, relationships, and diagnostics before the answer is finalized.
Answer with citations
The AI assistant answers your question with citations that can be traced back to Pasal.id and the official source.
Available Tools
Six v2 tools for law resolution, context, reading text, regulation search, Constitutional Court decisions, and data issue reports.
search_legalSearch when the law reference is unclear
Use normal Indonesian terms, then narrow with type[], year, status, issuing body, or region filters.
resolve_lawResolve a citation or title to law_id
Use for references such as UU ITE, UU PDP, or long titles before fetching context.
get_law_contextGet token-efficient orientation
Summaries, outlines, and amendment/MK relationships help choose what to read.
read_lawRead text with flexible selectors
Accepts selectors such as pasal 27-30, bab III, menimbang, penjelasan pasal 5, or all.
search_court_decisionsSearch Constitutional Court decisions
Find PUU, SKLN, PHPU, or PHPKADA decisions by reviewed law, outcome, year, and justice.
report_issueReport data problems
Use for OCR errors, missing regulations/articles, broken links, stale content, or search_failure.
How to use it
Start with the clearest workflow so answers stay grounded and token-efficient.
When the law is already known
resolve_lawget_law_contextread_lawResolve the citation, title, or shorthand to a canonical law; fetch a summary or outline for orientation; then read the text you need.
When you do not know which law applies
search_legalSearch with Indonesian legal terms and granular filters. Once the right candidate is found, continue to context or text reading.
Example prompts
“What does Article 27 paragraph (3) of the ITE Law say?”
“Find DKI Jakarta governor regulations on wastewater management”
“What is the status of the Job Creation Law after the Constitutional Court decisions?”
“Summarize the structure of the Personal Data Protection Law”