Skip to main content
Glama
ChloePark85

Korea Ground-Truth MCP

by ChloePark85

Korea Ground-Truth MCP

SaaS headless y nativo de IA cuyo cliente es un agente de IA. Expone herramientas de verificación de datos de Corea a través de MCP (Streamable HTTP) y REST, con consumo medido mediante créditos prepagados.

Herramienta

Fuente

Créditos

verify_business_registration

국세청 (data.go.kr)

2

search_address

행안부 juso.go.kr

1

search_corporation / lookup_corporation

DART

1 / 2

apartment_trade_prices

국토교통부 (data.go.kr)

3

search_law

법제처 law.go.kr

2

get_balance, get_pricing

interno

gratis

En vivo: https://kr-groundtruth-mcp.vercel.app/llms.txt, /openapi.json, /pricing.json. Endpoint MCP: /api/mcp.

claude mcp add --transport http kgt https://kr-groundtruth-mcp.vercel.app/api/mcp --header "Authorization: Bearer kgt_live_..."

Stack

Next.js 16 (App Router) · mcp-handler 2 (MCP SDK v2, sin estado) · Supabase Postgres · Toss Payments · Vercel.

Related MCP server: 갈피 법령조회 MCP

Infraestructura

  • Proyecto de Supabase kr-groundtruth-mcp (ref kzjzjahokqduktphxpsj, ap-northeast-2)

  • Proyecto de Vercel chloepark85s-projects/kr-groundtruth-mcp; variables de entorno configuradas para producción (vercel env ls)

  • Listados: Official MCP Registry io.github.ChloePark85/kr-groundtruth (server.json + mcp-publisher), Smithery hapark85/kr-groundtruth (smithery mcp publish … --config-schema), Glama (indexado automáticamente; reclamado mediante /.well-known/glama.json), mcp.so (issue chatmcp/mcpso#3776)

  • Autenticación MCP: el descubrimiento (initialize/tools/list) es público; tools/call requiere una clave mediante Authorization: Bearer, x-api-key o ?apiKey=

Configuración

  1. Proyecto de Supabase → ejecutar supabase/migrations/0001_core.sql en el editor SQL (o supabase db push).

  2. Copiar .env.example.env.local y rellenar las claves:

    • DATA_GO_KR_KEY: Solicitar el uso de 「국세청_사업자등록정보 진위확인 및 상태조회」 y 「국토교통부_아파트 매매 실거래가」 en data.go.kr (aprobación automática)

    • JUSO_KEY: Solicitar la clave de aprobación en business.juso.go.kr

    • DART_KEY: Clave de autenticación en opendart.fss.or.kr

    • LAW_OC: Solicitar la OPEN API en law.go.kr (aprobación del administrador en 1~2 días)

    • TOSS_CLIENT_KEY / TOSS_SECRET_KEY: Clave de prueba de Toss Payments

  3. npm run dev

  4. La búsqueda de nombres en DART necesita la lista de códigos de corporaciones: npx tsx scripts/sync-dart-corp-codes.ts (volver a ejecutar mensualmente).

Flujo

POST /v1/accounts {email}            → api_key (once) + 50 free credits
claude mcp add --transport http kgt $URL/api/mcp --header "Authorization: Bearer kgt_live_..."
tools/call → debit_credits (row-locked) → cache → upstream → {ok, data, meta:{cost, balance_remaining}}
402 INSUFFICIENT_CREDITS → POST /v1/topups {credits} → checkout_url → human pays (Toss) → credit_credits (idempotent)

Notas de diseño

  • src/lib/tools/registry.ts es la fuente única de las herramientas MCP, las rutas REST, OpenAPI, los precios y llms.txt. Los precios también se cargan en tool_prices; la fila de la base de datos es lo que cobra debit_credits.

  • Debitar antes de la llamada upstream; si la llamada upstream falla → reembolso automático (credit_ledger.reason='refund').

  • credit_ledger es de solo añadir (trigger) con unique(reason, ref_id), por lo que tanto la redirección de éxito de Toss como el webhook pueden ejecutarse de forma segura.

  • Todas las tablas tienen RLS habilitado sin políticas; solo la clave de rol de servicio (servidor) puede acceder a ellas.

Métricas

  • npm run metrics [-- --days 7 --include-test] — informe semanal (métrica North Star = Weekly Active API Keys; embudo: clave creada → primera llamada → llamada al segundo día → 402 → recarga; tiempo hasta la primera llamada; llamadas por herramienta; ingresos). Las cuentas de prueba (@example.com) se excluyen salvo que se use --include-test.

  • GET /v1/admin/metrics?days=7 con la cabecera x-admin-token: $ADMIN_TOKEN devuelve el mismo JSON (metrics_report() en supabase/migrations/0002_metrics.sql).

Lista de verificación

H=http://localhost:3000
curl -X POST $H/v1/accounts -H 'content-type: application/json' -d '{"email":"a@b.com"}'
K=kgt_live_...
curl -X POST $H/api/mcp -H "Authorization: Bearer $K" -H 'accept: application/json, text/event-stream' -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
curl -X POST $H/v1/tools/search_address -H "Authorization: Bearer $K" -H 'content-type: application/json' -d '{"keyword":"세종대로 209"}'
# race test: 50 concurrent calls on a low balance → ledger sum == balance
seq 50 | xargs -P 50 -I{} curl -s -o /dev/null -w '%{http_code}\n' -X POST $H/v1/tools/search_address -H "Authorization: Bearer $K" -H 'content-type: application/json' -d '{"keyword":"테스트 {}"}' | sort | uniq -c
F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI to query real-time Korean public data including weather, real estate prices, air quality, economic indicators, and business registration via natural language.
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to search and retrieve Korean laws, regulations, administrative rules, legal interpretations, and precedents via official APIs for legal review workflows.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Provides verification and utility APIs for AI agents to validate tax IDs, screen sanctions, verify companies, and inspect domains using prepaid USD credits, with no charge for failed checks.
    13
    155
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to verify Korean business registration status, tax type, and invoice eligibility using the NTS public data API via 5 tools.
    5
    36
    MIT

View all related MCP servers

Related MCP Connectors

  • Real-time Korean business verification via the National Tax Service (NTS). Free during pilot.

  • Korean business registry, corporate info, parcel tracking, validation APIs

  • APICK Korean data APIs: business registry, parcel tracking, OCR, conversion, search

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChloePark85/kr-groundtruth-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server