# INE MCP: 스페인 공식 통계와 원본 표
# INE MCP: Spain’s official statistics and their original tables

- Site: https://select1.dev/2026-11-27 (English), https://select1.dev/ko/2026-11-27 (Korean)
- Entry: 048
- Published: 2026-11-27 (KST). Launch date: 2026-11-26
- Pick: INE MCP <https://github.com/es-ine/mcp> (source: GitHub)
- Verified: ran
- What: INE MCP 는 AI 어시스턴트가 스페인 통계청의 공식 통계를 직접 조회하게 하는 프로덕트다. 어시스턴트는 수치와 함께 그 수치가 있는 공식 표의 링크를 받는다.
- What (en): INE MCP is a product that lets an AI assistant look up Spain’s official statistics directly. Each figure the assistant gets comes with a link to the official table it is in.
- Why: 오늘의 픽으로 선정한 이유는 AI 가 답한 수치를 공식 표에서 확인할 수 있기 때문이다.
- Why (en): It is today’s pick because you can see which official table an AI’s figure came from.
- Verdict: 작동한다. INE MCP 로 받은 무르시아 남성 실업률은 INE API 의 값과 같았다.
- Verdict (en): It works. The unemployment rate for men in Murcia from INE MCP matched the INE API.
- Tags: mcp, open-data, statistics, agents

## Checked against the README

- [pass] 앞 단계를 건너뛰면 서버가 BLOCKED 를 반환한다(if a step is skipped, the server answers BLOCKED) — 새 세션에서 2단계 없이 3단계와 5단계를 호출했다. 둘 다 BLOCKED: Cannot execute step N without completing step 2 와 다음에 호출할 도구를 반환했다
- [fail] 각 단계는 앞 단계가 반환한 식별자만 받는다(Each step only accepts identifiers returned by the previous ones) — 서버는 없는 지역 값 99999 와 EPA 의 표 목록에 없는 표 두 개를 거부했다. 4단계가 무르시아만 보여 준 뒤 갈리시아의 9008 을 넣자 5단계가 받아들였다. EPA 표 65061 은 2단계가 보여 준 검색 결과 상위 10개에 없었지만 3단계가 받아들였다. state.py 를 보면 서버는 보여 준 목록이 아니라 INE 에서 받은 전체 목록과 식별자를 대조한다
- [pass] 결과에는 조사, 표, 표의 공개 URL, 적용한 필터가 함께 포함된다(Each result includes the operation, the table, its public URL and the filters applied) — 5단계 결과의 source 에 EPA(293), 표 65334, https://www.ine.es/jaxiT3/Tabla.htm?t=65334, 필터 세 개, 기간이 있었다. 값은 같은 필터로 INE API 에 직접 요청한 값과 같았다

## Measured

- 2단계(EPA 의 표 1,093개 검색)에 걸린 시간: 14.6초, 16.3초, 17.7초 (새 세션에서 1단계부터 다시 실행할 때마다 2단계 호출의 시작과 끝 시각 차이를 측정했다. 나머지 단계는 각각 0.1~1.6초였다)

## Progress (days after launch; full history https://select1.dev/2026-11-27/progress)

- day 3 (checked 2026-11-29) [some] commits since launch 2, stars 208, releases 1, contributors 1, last commit 2026-11-27
  - The first release is out (v1.0.0).

## 한국어

## 무엇이 문제인가

AI 어시스턴트에게 스페인의 실업률을 물으면, 답의 수치가 어디서 왔는지 확인하기 어렵다. Anthropic 의 웹 검색 도구 문서에 따르면 Claude 는 이 도구로 웹을 검색해, 학습 시점 이후의 정보로 답하고, 검색 결과의 출처를 인용한다. 인용된 출처가 통계청의 표인지, 그 수치를 옮긴 기사인지는 검색 결과에 따라 다르다. 그래서 답의 수치가 공식 표의 어느 값인지는 사용자가 출처를 열어 다시 확인해야 한다.

## 어떻게 해결했나

스페인 통계청(INE)의 방법론과 표본 설계 담당 부서가 2026년 11월 26일 GitHub 에 INE MCP 를 공개했다.

INE MCP 는 AI 어시스턴트가 INE 의 공개 API 에서 통계를 가져오게 하는 MCP 서버다. 도구는 5개이고, 정해진 순서로만 호출할 수 있다. 어시스턴트는 먼저 통계 조사를 찾고 표를 선택한다. 그다음 표의 변수와 값을 선택한 뒤, 마지막에 수치를 받는다. 앞 단계를 건너뛰면 서버는 `BLOCKED` 로 시작하는 오류와 함께 빠진 단계를 알려 준다. README 에 따르면 앞 단계가 반환하지 않은 식별자도 거부한다. 서버는 수치와 함께 조사, 표, 표의 공개 URL, 적용한 필터를 반환한다.

## 무엇이 다른가

첫째, 수치를 가져오는 곳이 다르다. Claude 의 웹 검색 도구를 쓰면 모델이 검색 결과로 나온 여러 페이지에서 수치를 가져온다. INE MCP 는 INE 의 공개 API 에서만 수치를 가져온다. 서버는 첫 응답에 사용 규칙을 함께 보낸다. 규칙에는 웹 검색이나 모델이 학습한 지식으로 수치를 채우지 말라는 지시가 있다. 트레이드오프는 INE 의 조사라도 표로 공개하지 않은 통계는 조회할 수 없다는 점이다. README 에 따르면 INE 의 조사 166개 가운데 표가 있는 조사는 110개다.

둘째, 표와 값을 선택하는 방식이 다르다. 웹 검색에서는 모델이 페이지를 읽고 어느 값을 옮길지 결정한다. INE MCP 에서는 같은 표의 앞 단계를 마쳐야 다음 단계를 호출할 수 있다. 서버는 식별자를 INE 에서 받은 목록과 대조해, 모델이 지어낸 식별자가 목록에 없으면 거부한다. 트레이드오프는 수치 하나를 받는 데 호출이 다섯 번 필요하다는 점이다.

## 어떻게 만들었나

- 저장소의 커밋은 1개다. 커밋의 작성자 이름은 INE 의 방법론과 표본 설계 담당 부서다. README 에는 INE 의 GitLab 저장소에서 클론하라는 안내가 있다.
- `src` 아래 Python 코드는 2,182줄이다. 라이선스는 EUPL 1.2 다.
- README 의 면책 조항에서 INE 는 이 코드를 보증 없이 있는 그대로 제공하고, 아직 개발 중이라고 밝힌다.

## 실행해 보니

저장소를 클론해 환경 변수를 비운 셸에서 uv 로 설치했다. 설치는 3초 걸렸다. AI 어시스턴트는 연결하지 않았다. 대신 Python 표준 라이브러리로 MCP 클라이언트를 직접 작성해 도구를 호출했다.

1. 정상 흐름. README 의 예처럼 무르시아 남성의 최근 네 분기 실업률을 요청했다. 1단계에서 경제활동인구조사(EPA)를 찾았다. 2단계에서 표 65334 를 선택하고, 3단계와 4단계에서 성별, 지역, 연령의 값을 선택했다.
2. 수치와 출처. 5단계가 반환한 값은 2026년 3분기 9.58, 2분기 9.49, 1분기 8.1, 2025년 4분기 9.53 이었다. INE API 에 같은 필터로 직접 요청한 값과 같았다. 직접 요청한 결과는 분기를 번호로 표시한다(3분기 21번, 2분기 20번, 1분기 19번, 4분기 22번). INE MCP 는 같은 값을 분기 이름과 함께 반환했다. 결과에는 조사, 표, 표의 공개 URL, 적용한 필터가 포함돼 있었다.
3. 단계 건너뛰기. 새 세션에서 2단계 없이 3단계와 5단계를 호출했다. 둘 다 `BLOCKED` 오류와 함께 2단계를 먼저 호출하라는 안내를 반환했다.
4. 없는 식별자. 지역 값으로 존재하지 않는 99999 를 넣자 5단계가 거부했다. EPA 의 표 목록에 없는 표 두 개를 3단계에 넣어도 거부했다.
5. 보여 주지 않은 식별자. 4단계에서 "Murcia" 로 검색하자 무르시아 하나만 반환됐다. 그 뒤 갈리시아의 식별자 9008 을 5단계에 넣자, 서버는 이를 받아들여 갈리시아의 실업률을 반환했다. EPA 표 65061 은 2단계가 보여 준 검색 결과 상위 10개에 없었지만, 서버는 3단계에서 이 표를 받아들였다. 코드를 보면 서버는 보여 준 목록이 아니라 INE 에서 받은 전체 목록(지역 20개, 표 1,093개)과 식별자를 대조한다.
6. 시간. 2단계는 EPA 의 표 1,093개를 검색한다. 세 번 실행해 14.6초, 16.3초, 17.7초 걸렸다. 나머지 단계는 각각 2초 안에 끝났다.
7. 테스트. pytest 를 실행하자 테스트 70개가 모두 통과했다.

```text title="터미널, 5단계 결과와 INE API 직접 요청"
[(2026, 'T3', 9.58), (2026, 'T2', 9.49), (2026, 'T1', 8.1), (2025, 'T4', 9.53)]
Tasa de paro de la población. Hombres. Murcia, Región de. Total.  [(2026, 21, 9.58), (2026, 20, 9.49), (2026, 19, 8.1), (2025, 22, 9.53)]
```

```text title="터미널, 4단계에서 보여 주지 않은 갈리시아로 요청한 5단계"
      "applied_filters": [
        "18:452",
        "70:9008",
        "356:15668"
      ],
          "Nombre": "Tasa de paro de la población. Hombres. Galicia. Total. ",
```

## 확인하지 못한 것

- AI 어시스턴트가 직접 다섯 단계를 밟는 대화. Claude Code 에 `claude mcp add` 로 서버를 등록하고 같은 질문을 해 보자.
- HTTP 연결. 오늘은 표준 입출력(stdio)으로 연결했다. README 에 따르면 HTTP 로 연결하는 공개 엔드포인트는 아직 없다. 로컬에서 Streamable HTTP 로 실행해 같은 흐름을 확인해 보자.

## 판정

작동한다. INE MCP 로 받은 무르시아 남성 실업률은 INE API 의 값과 같았다. 다만 4단계에서 보여 주지 않은 지역의 식별자도 5단계는 받아들였다. 서버가 INE 에서 받은 전체 목록과 대조하기 때문이다. 그래서 모델이 학습한 지식으로 다른 지역의 식별자를 넣어도 서버는 거부하지 못한다. AI 어시스턴트로 스페인 통계를 자주 조회하는 경우에 써 볼 만하다.

## 얻어갈 것

- 에이전트가 호출하는 도구는 앞 단계가 반환한 식별자만 받도록 하자. INE MCP 는 식별자를 INE 의 전체 목록과 대조한다. 그래서 4단계에서 무르시아만 보여 줬는데도, 5단계는 갈리시아의 식별자를 받아들였다.
- 공식 데이터를 조회하는 도구는 수치와 함께 원본 표의 주소와 필터를 반환하게 하자. INE MCP 는 수치와 함께 표의 주소와 필터를 반환했다. 같은 표와 필터로 INE API 에 직접 요청하자 같은 값이 나왔다.

### 용어

- MCP: Model Context Protocol. AI 모델을 외부 도구와 데이터에 연결하는 방식을 정의한 규격이다.

## English

## The problem

When you ask an AI assistant about unemployment in Spain, it is hard to check where the figure came from. Anthropic’s docs say that Claude’s web search tool finds information newer than Claude’s knowledge cutoff. It cites sources from the search results. The search results decide whether a cited source is the statistics office’s table or an article that copied the figure. So you have to open the source and find the figure in the official table yourself.

## How it solves it

The methodology and sample design unit of Statistics Spain (INE) published INE MCP on GitHub on November 26, 2026.

INE MCP is an MCP server that lets an AI assistant fetch statistics from INE’s public API. It has five tools, and they can only be called in a fixed order. First the assistant finds a statistical survey and picks a table. Then it picks the table’s variables and values. Finally, it gets the figures. If a step is skipped, the server returns an error that starts with `BLOCKED` and names the missing step. According to the README, it also rejects identifiers that the earlier steps did not return. It returns the figures with the survey, the table, the table’s public URL and the filters applied.

## What is different

First, INE MCP differs in where the figures come from. With Claude’s web search tool, the figures in an answer come from several pages in the search results. INE MCP takes figures only from INE’s public API. The server attaches usage rules to its first response. They tell the assistant not to fill in figures from web search or from what the model learned in training. The trade-off is that it cannot look up statistics that INE does not publish as tables, even from INE’s own surveys. According to the README, 110 of INE’s 166 surveys have tables.

Second, INE MCP differs in how tables and values are picked. With web search, the model reads the pages and decides which value to copy. In INE MCP, each step needs the results of the earlier steps for the same table. The server checks each identifier against the lists it got from INE. So it rejects a made-up identifier that does not exist. The trade-off is that getting one figure takes five calls.

## How it was built

- The repository has one commit. Its author name is INE’s methodology and sample design unit. The README says to clone the code from INE’s GitLab repository.
- The Python code under `src` is 2,182 lines. The license is EUPL 1.2.
- In the README’s disclaimer, INE says it provides the code as is, without warranty. It also says the project is still under development.

## Running it

I cloned the repository and installed it with uv in a shell with an empty environment. The install took 3 seconds. I did not connect an AI assistant. Instead, I called the tools with a small MCP client that I wrote with the Python standard library.

1. The normal flow. As in the README’s example, I asked for the unemployment rate for men in Murcia over the last four quarters. Step 1 found the Labour Force Survey (EPA). Step 2 picked table 65334, and steps 3 and 4 picked the values for sex, region and age.
2. Figures and source. Step 5 returned 9.58 for the third quarter of 2026 and 9.49 for the second. It returned 8.1 for the first quarter of 2026 and 9.53 for the fourth quarter of 2025. They matched the values from a direct request to the INE API with the same filters. The direct request’s output gives the quarters as codes (21 for the third, 20 for the second, 19 for the first and 22 for the fourth). INE MCP returned the same values with quarter names. The result came with the survey, the table, the table’s public URL and the filters applied.
3. Skipping a step. In a new session, I called steps 3 and 5 without step 2. Both returned a `BLOCKED` error and told me to call step 2 first.
4. An identifier that does not exist. Step 5 rejected 99999, which is not a region value. Step 3 also rejected two tables that are not in EPA’s table list.
5. An identifier that was never shown. In step 4, I searched for "Murcia" and got only Murcia back. Then I passed Galicia’s identifier 9008 to step 5. The server accepted it and returned the unemployment rate for Galicia. Step 3 also accepted EPA table 65061, which was not in the top 10 results that step 2 showed. The code shows that the server checks identifiers against the full list it got from INE (20 regions, 1,093 tables), not against the list it showed.
6. Time. Step 2 searches EPA’s 1,093 tables. It took 14.6, 16.3 and 17.7 seconds in three runs. Each of the other steps finished within 2 seconds.
7. Tests. When I ran pytest, all 70 tests passed.

```text title="Terminal, step 5 and a direct INE API request"
[(2026, 'T3', 9.58), (2026, 'T2', 9.49), (2026, 'T1', 8.1), (2025, 'T4', 9.53)]
Tasa de paro de la población. Hombres. Murcia, Región de. Total.  [(2026, 21, 9.58), (2026, 20, 9.49), (2026, 19, 8.1), (2025, 22, 9.53)]
```

```text title="Terminal, step 5 with Galicia, which step 4 never showed"
      "applied_filters": [
        "18:452",
        "70:9008",
        "356:15668"
      ],
          "Nombre": "Tasa de paro de la población. Hombres. Galicia. Total. ",
```

## Not checked

- A conversation in which an AI assistant takes the five steps itself. Register the server in Claude Code with `claude mcp add` and ask the same question.
- An HTTP connection. Today I connected over standard input and output (stdio). According to the README, there is no public HTTP endpoint yet. Run it with Streamable HTTP locally and check the same flow.

## Verdict

It works. The unemployment rate for men in Murcia from INE MCP matched the INE API. But step 5 also accepted the identifier of a region that step 4 never showed. This is because the server checks against the full list it got from INE. So if a model fills in another region’s identifier from what it learned in training, the server cannot reject it. It is worth trying if you often look up Spanish statistics through an AI assistant.

## What to take away

- In tools that agents call, accept only identifiers that the earlier steps returned. INE MCP checks identifiers against INE’s full list. As a result, step 5 accepted Galicia’s identifier even though step 4 had shown only Murcia.
- Tools that look up official data should return the address of the original table and the filters with each figure. INE MCP returned the table’s address and the filters with the figures. When I requested the same table with the same filters from the INE API, I got the same values.

### Terms

- MCP: Model Context Protocol. It is a standard for how AI models connect to outside tools and data.

## Launches the same day

- Olumino <https://olumino.app> (Show HN, 19): 노트 앱. Markdown 노트와 간격 반복 학습을 한곳에서 쓴다.
- The Mouseless Vim manual <http://themouseless.dev/vim/> (Show HN, 17): Vim 설명서. 제작자가 4년 동안 쓴 Vim 안내서다.
- Openfal <https://openfal.org> (Show HN, 15): 이미지·영상 생성 서버. fal 과 같은 형식의 API 로 로컬에서 이미지와 영상을 만든다.
- rustling <https://github.com/onatm/rustling> (Show HN, 13): Rust 에이전트. Apple Silicon 용 Inkling 2 Mini 추론 엔진을 함께 쓴다.
- Hatamoto <https://news.hatamoto.dev/> (Show HN, 11): 커뮤니티 서버. Hacker News 같은 사이트를 실행 파일 하나로 직접 운영한다.
- grh-lean <https://github.com/lsernau/grh-lean> (GitHub, 851): 수학 증명. 디리클레 L-함수의 일반화 리만 가설을 Lean 4 로 증명했다고 밝힌 연구 산출물이다.
- Reloc <https://github.com/Reukix/Reloc> (GitHub, 714): iOS 위치 시뮬레이터. 액세서리 프로토콜로 iPhone 에 가짜 위치를 보낸다.
- INE MCP <https://github.com/es-ine/mcp> (GitHub, 122): MCP 서버. 스페인 통계청의 공개 API 를 AI 어시스턴트에 연결한다.
- Hub <https://www.producthunt.com/products/hub-20> (Product Hunt, 321): 에이전트 세션 관리 도구. Claude Code 나 Codex 세션 100개를 5개처럼 다룬다고 소개한다.
- QA.tech MCP <https://www.producthunt.com/products/qa-tech> (Product Hunt, 165): 테스트 도구. IDE 에서 QA 에이전트로 변경을 검증한다고 소개한다.
- ExtraOrbital <https://www.producthunt.com/products/extraorbital-deleted-1365752> (Product Hunt, 148): 에이전트용 인프라. 에이전트에게 데이터베이스, 저장소 버킷, AI 키를 열어 준다고 소개한다.

## Getting started

- Steps: git clone https://github.com/es-ine/mcp ine-mcp ; cd ine-mcp && uv sync ; claude mcp add ine -- uv run --directory /path/to/ine-mcp ine-mcp
- Needs: Python 3.11 이상과 uv., Claude Code, Codex 같은 MCP 클라이언트. 계정과 API 키는 필요 없다.
- Cost: 무료, EUPL 1.2 라이선스.
