mcpField
A
alphago2580-naramarketmcp

alphago2580-naramarketmcp

Remote
github.com/alphago2580Legal & Government4Updated 37w ago
Repository

About alphago2580-naramarketmcp

alphago2580-naramarketmcp is a FastMCP server that gives AI agents access to South Korea's G2B public procurement data. It brings together bid, award, contract, statistics, product-list, and shopping-mall APIs, with exploration aids for querying them.

Key features

  1. 01Query bid, award, and contract data
  2. 02Access procurement statistics and product lists
  3. 03Search shopping mall products
  4. 04Explore APIs with pagination support
  5. 05Use procurement resources and prompts

Use cases

  1. 01Find recent government bid notices
  2. 02Review awards by business type
  3. 03Look up annual procurement statistics
  4. 04Search public procurement shopping products

MCP support

Exposes 16 MCP tools, 3 resources, and 3 prompts for procurement data and API exploration. Supports stdio, HTTP, and SSE transports.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://server.smithery.ai/@alphago2580/naramarketmcp/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://server.smithery.ai/@alphago2580/naramarketmcp/mcpAuth required

Tools

Details

From the project README

나라장터 MCP 서버

한국 공공조달(G2B) 데이터를 MCP(Model Context Protocol)로 제공하는 FastMCP 2.0 서버입니다.

입찰공고, 낙찰정보, 계약정보, 조달통계, 물품목록, 종합쇼핑몰 등 나라장터의 주요 API를 AI 에이전트가 바로 사용할 수 있도록 통합했습니다.

아키텍처

┌─────────────────┐     MCP Protocol      ┌──────────────────────┐
│   AI Agent      │ ◄──(stdio/http/sse)──► │  naramarket-mcp      │
│ (Claude, etc.)  │                        │                      │
└─────────────────┘                        │  ┌────────────────┐  │
                                           │  │ MCP Tools (16) │  │
                                           │  │ Resources (3)  │  │
                                           │  │ Prompts (3)    │  │
                                           │  └───────┬────────┘  │
                                           │          │           │
                                           │  ┌───────▼────────┐  │
                                           │  │  API Clients   │  │
                                           │  │  (sync/async)  │  │
                                           │  └───────┬────────┘  │
                                           └──────────┼───────────┘
                                                      │
                                           ┌──────────▼───────────┐
                                           │  data.go.kr APIs     │
                                           │  (공공데이터포털)      │
                                           └──────────────────────┘

MCP 도구

기본 도구 (3개)
도구설명
crawl_list나라장터 상품 목록 조회
get_detailed_attributes상품 상세 속성 조회
server_info서버 정보 및 사용 가능한 도구 목록
정부조달 API (4개)
도구설명지원 API
call_public_data_standard_api공공데이터개방표준 API입찰공고, 낙찰정보, 계약정보
call_procurement_statistics_api조달통계 API전체/기관별/기업별 조달 통계 (14개 오퍼레이션)
call_product_list_api물품목록 API물품분류, 품목 조회 (12개 오퍼레이션)
call_shopping_mall_api종합쇼핑몰 APIMAS 계약, 납품요구, 벤처나라 (9개 오퍼레이션)
AI 친화 간편 도구 (4개)
도구설명
get_recent_bid_announcements최근 입찰공고 조회 (기간 자동 계산)
get_successful_bids_by_business_type업무구분별 낙찰정보 (한글 → 코드 자동 변환)
get_procurement_statistics_by_year연도별 조달통계
search_shopping_mall_products쇼핑몰 제품 검색 (제품명/업체명)
탐색 도구 (4개)
도구설명
get_all_api_services_info전체 서비스 및 오퍼레이션 목록
get_api_operations서비스별 세부 오퍼레이션 조회
call_api_with_pagination_support페이징 지원 대량 데이터 탐색
get_data_exploration_guide데이터 탐색 전략 가이드
MCP 리소스 & 프롬프트
  • 리소스: API 파라미터 가이드, 값 예시, 검색 패턴
  • 프롬프트: 워크플로우 가이드, 파라미터 선택 가이드, 실전 쿼리 예제

시작하기

필수 요구사항
설치
git clone https://github.com/alphago2580/naramarketmcp.git
cd naramarketmcp

# 환경 설정
cp .env.example .env
# .env에서 NARAMARKET_SERVICE_KEY 설정

# 의존성 설치
pip install -r requirements.txt
실행
# STDIO 모드 (MCP 클라이언트 연동)
python -m src.main

# HTTP 모드 (웹 서비스)
FASTMCP_TRANSPORT=http FASTMCP_PORT=8000 python -m src.main

# 패키지 설치 후 실행
pip install .
naramarket-mcp
Docker
docker build -t naramarket-mcp .
docker run --rm -e NARAMARKET_SERVICE_KEY=your-key -p 8000:8000 naramarket-mcp

환경 변수

변수필수기본값설명
NARAMARKET_SERVICE_KEY✅-공공데이터포털 API 키
FASTMCP_TRANSPORT-stdio전송 모드 (stdio, http, sse)
FASTMCP_HOST-127.0.0.1HTTP/SSE 바인딩 호스트
FASTMCP_PORT-8081HTTP/SSE 포트
LOG_LEVEL-INFO로깅 레벨

프로젝트 구조

naramarketmcp/
├── src/
│   ├── main.py              # FastMCP 서버 진입점 (도구/리소스/프롬프트 등록)
│   ├── core/                # 핵심 모듈
│   │   ├── config.py        # 설정 관리
│   │   ├── models.py        # 데이터 모델
│   │   ├── client.py        # API 클라이언트
│   │   ├── async_client.py  # 비동기 클라이언트
│   │   └── utils.py         # 유틸리티
│   ├── api/                 # HTTP/REST 인터페이스
│   ├── services/            # 비즈니스 로직 (크롤러, 인증)
│   └── tools/               # MCP 도구 구현
│       ├── naramarket.py    # 기본 나라장터 도구
│       ├── enhanced_tools.py # 확장 API 도구
│       └── openapi_tools.py # G2B OpenAPI 도구
├── tests/                   # 테스트
├── deployments/             # 배포 설정 (docker-compose, nginx)
├── Dockerfile
├── smithery.yaml            # Smithery.ai 배포 설정
├── pyproject.toml
└── requirements.txt

개발

# 개발 의존성 설치
pip install .[dev]

# 테스트 실행
pytest tests/

# 타입 체크
mypy src/

기술 스택

  • FastMCP 2.0 — MCP 서버 프레임워크
  • Requests / Pandas — API 호출 및 데이터 처리
  • Uvicorn / Starlette — HTTP/SSE 서빙
  • Docker — 컨테이너 배포
  • Smithery.ai — 클라우드 MCP 호스팅

라이선스

Apache License 2.0 — LICENSE 참조

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.