Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"kr-co-airealty-lawmcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://bhgijvaxxjnocgfnaaeu.supabase.co/functions/v1/airealty-lawmcp/mcp?forceFunctionRegion=ap-northeast-2",
"--header",
"Authorization:${MCP_HEADER_AUTHORIZATION}"
],
"env": {
"MCP_HEADER_AUTHORIZATION": "Bearer <YOUR_VALUE>"
}
}
}
}
Replace placeholder values in `env` first. Restart Claude Desktop to activate the new server. If the server uses OAuth (not known from registry metadata), mcp-remote opens a browser to sign in on first start and caches tokens in ~/.mcp-auth.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"kr-co-airealty-lawmcp": {
"url": "https://bhgijvaxxjnocgfnaaeu.supabase.co/functions/v1/airealty-lawmcp/mcp?forceFunctionRegion=ap-northeast-2",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"kr-co-airealty-lawmcp": {
"type": "http",
"url": "https://bhgijvaxxjnocgfnaaeu.supabase.co/functions/v1/airealty-lawmcp/mcp?forceFunctionRegion=ap-northeast-2",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
The server will be available in the next Claude Code session. If the server uses OAuth, run /mcp inside Claude Code to authenticate.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"kr-co-airealty-lawmcp": {
"type": "http",
"url": "https://bhgijvaxxjnocgfnaaeu.supabase.co/functions/v1/airealty-lawmcp/mcp?forceFunctionRegion=ap-northeast-2",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"kr-co-airealty-lawmcp": {
"serverUrl": "https://bhgijvaxxjnocgfnaaeu.supabase.co/functions/v1/airealty-lawmcp/mcp?forceFunctionRegion=ap-northeast-2",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"kr-co-airealty-lawmcp": {
"type": "streamableHttp",
"url": "https://bhgijvaxxjnocgfnaaeu.supabase.co/functions/v1/airealty-lawmcp/mcp?forceFunctionRegion=ap-northeast-2",
"headers": {
"Authorization": "Bearer <YOUR_VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| LAWMCP_HOST | No | 바인딩 호스트 (기본값 127.0.0.1). 루프백이 아니면 인증이 강제됩니다. |
| LAWMCP_PORT | No | Streamable HTTP 서버 포트 (기본값 3457) |
| LAWMCP_BURST | No | 업스트림 전체 버스트 한도 (기본값 8) |
| LAWMCP_DEBUG | No | 설정 시 stderr 오류 로그 출력 |
| LAWMCP_TOKENS | No | 토큰 목록을 `이름:토큰,…` 평문으로 직접 지정. 비교는 sha256 + timingSafeEqual, 로그에는 이름만 남깁니다. |
| LAWMCP_PREWARM | No | 기본 1: 서버가 뜬 뒤 src/prewarm.js 목록 38개 법령의 색인·체계도를 백그라운드로 채움. 0이면 끔. |
| openlaw_API_KEY | Yes | 법제처 국가법령정보 OPEN API 인증값(OC). open.law.go.kr 가입 후 OPEN API 신청(승인 1~2일) → API인증키관리에서 복사. 환경변수 또는 저장소 상위 폴더의 keys.env(openlaw_API_KEY=…)에서 읽으며 어디에도 출력하지 않습니다. |
| LAWMCP_CACHE_DIR | No | 디스크 캐시 디렉터리 (사전·조문 번호 색인 24h·체계도 요약 7d·판 목록 6h — 키 없음) |
| LAWMCP_BUCKET_FILE | No | 버킷 상태를 공유할 파일 경로 |
| LAWMCP_CONCURRENCY | No | 업스트림 동시 호출 수 (기본값 4, 1~8) |
| LAWMCP_TOKENS_FILE | No | 토큰 파일 경로 (해시 또는 평문 줄). 기본 파일은 ~/.config/airealty-lawmcp/tokens.txt 이며 서버가 5초마다 변경을 따라갑니다. |
| LAWMCP_TOKEN_BURST | No | 토큰별 버스트 한도 (기본값 10) |
| LAWMCP_TOKEN_DAILY | No | 토큰별 일일 호출 한도 (기본값 2000, UTC 자정 초기화 — 일일 상한의 Retry-After는 최대 86400초) |
| LAWMCP_RATE_PER_SEC | No | 업스트림 전체 초당 요청 한도 (기본값 5) |
| LAWMCP_REQUIRE_AUTH | No | 1로 설정하면 인증을 강제합니다(루프백 여부·토큰 유무와 무관). 유효 토큰이 0개면 종료 코드 2. |
| LAWMCP_ALLOWED_ORIGINS | No | 브라우저 Origin 허용 목록(쉼표 구분). 기본은 로컬(localhost·127.0.0.1)만 허용하며 그 밖의 Origin은 403. |
| LAWMCP_TOKEN_RATE_PER_SEC | No | 토큰별 초당 요청 한도 (기본값 2, tools/call 기준) |
| LAWMCP_HIERARCHY_BUDGET_MS | No | 체계도 조회 시간 예산(ms) (기본값 1200) |
Remote headers
HTTP headers the remote endpoint expects.
| Name | Required | Description |
|---|---|---|
| Authorization secret | Yes | 운영자가 발급한 Bearer 토큰 (conoc612@gmail.com 에 요청) |