pollution-permit-mcp
AIGC: Label: "1" ContentProducer: 001191440300708461136T1XGW3 ProduceID: c3e1d189ed77864364abef970f361174_cc96e0c0a1e511f1abe1525400e6dd8f ReservedCode1: NJWv7pof6N4zs+DCuplZqym42Cus+bRWvStMbVpSzCwaQatuiHqVSoqLluXUc3DFHznps6pKH2yl0CzMRN0VafbyYMwviAhLbyPc/zOKHRlhIXaJ44xs8iQRgxXni3BMOMnMZpK1aZBQ2voImDv35w31/lwbAwrJrW3uzKLynrUZJDUQbbYK460tPi8= ContentPropagator: 001191440300708461136T1XGW3 PropagateID: c3e1d189ed77864364abef970f361174_cc96e0c0a1e511f1abe1525400e6dd8f ReservedCode2: NJWv7pof6N4zs+DCuplZqym42Cus+bRWvStMbVpSzCwaQatuiHqVSoqLluXUc3DFHznps6pKH2yl0CzMRN0VafbyYMwviAhLbyPc/zOKHRlhIXaJ44xs8iQRgxXni3BMOMnMZpK1aZBQ2voImDv35w31/lwbAwrJrW3uzKLynrUZJDUQbbYK460tPi8=
전국 오염배출허가증 공개단 MCP 서버
전국 오염배출허가 관리정보 플랫폼 공개단(permit.mee.gov.cn) 기반의 관통형 MCP 서비스. 기업명을 입력하면 허가증 정본·부본, 배출구 위경도, 허가 후 관리 실시간 현황, 정책 법규 전문을 초 단위로 조회할 수 있습니다.
Related MCP server: Bidding MCP Server
특징
기능 | 설명 |
기업 검색 | 성/시/기관명/허가증 번호/업종 페이지 조회, 전국 3.8만+ 페이지 커버 |
허가증 상세 | 기본 정보, 정본 버전, 부본 요약, 위경도 숨김 필드, 배출구 지점(AES 자동 복호화) |
부본 전문 | 페이지별 PNG 다운로드(약 42페이지), 상위 OCR 연동으로 전문 복원(공정/제품/배출기준) |
허가 후 관리 | 이행보고서(보고기간/처리시설 운영/달성 여부), 감독 집행, 자체 모니터링 진입 |
공고 | 기한 내 시정, 말소/취소/분실 신고 |
정책 법규 | 6대 분류 목록 + 전문 원문 + 첨부파일 다운로드 |
엔지니어링 | WebShield 세션 자동 유지, 1초 속도 제한, 지수 백오프 재시도, SQLite 캐시 |
빠른 시작
pip install -r requirements.txt
python server.pyMCP 클라이언트가 표준 프로토콜로 연결한 후 도구를 호출할 수 있습니다.
도구 목록
도구 | 역할 |
| 허가 공개 정보 목록 조회(dataid 반환) |
| 상세: 텍스트 정보 + 위경도 + 배출구 지점 |
| 부본 이미지 페이지 목록 |
| 부본 단일 페이지 PNG 다운로드(OCR용) |
| 배출구 QR코드 주소 |
| 허가 후 관리: 이행보고서/감독 집행/자체 모니터링 |
| 기한 내 시정 공시 |
| 말소/취소/분실 공고 |
| 정책 법규 분류 목록 |
| 정책 법규 전문 |
| 배출구 지점 복호화 결과 |
| 자체 모니터링 플랫폼 연동 주소 |
아키텍처
server.py (FastMCP 入口)
└─ permit_mcp/tools.py 工具定义(12 个)
├─ client.py WebShield 会话 / 限速 / 重试 / 缓存
├─ parser.py HTML→JSON / AES-ECB 解密 / 表格解析
└─ config.py 接口地址与常量관통 구현 핵심 사항
로그인 불필요: 공개단은 계정이 필요 없으며, WebShield 세션 토큰만 있으면 됩니다(홈페이지 자동 방문으로 예열).
목록 인터페이스:
POST /perxxgkinfo/syssb/xkgg/xkgg!licenseInformation.action, 파라미터province/city/unitName/licenseNumber/industry/pageIndex/pageSize.상세 인터페이스:
GET xkgkAction!xkgk.action?xkgk=getxxgkContent&dataid=<ID>, 위경도는 숨김 input 필드로 존재하며, 배출구 지점은 인라인 AES-128-ECB 암호문으로 페이지 JS에 하드코딩된 키로 자동 복호화됩니다.부본 이미지:
showImage.action?dataid=<ID>로 pkid와 페이지 수 획득 →downFilePng.action?datafileid=<pkid>_<페이지번호>로 페이지별 PNG 다운로드.허가 후 관리: 이행보고서는 비동기 JSON 인터페이스
hpsp-company-sewage!getZxbgByYear.action(파라미터 reportYear/dataid)를 통해 연간/분기 보고서 및permitrep보고서 문서 링크를 반환하며, 자체 모니터링은wryjc.mee.gov.cn에 연동됩니다.법규 전문:
lawsStandardList.action?columntype=<분류>로 목록 조회 →getNewsDetail.action?pkid=<UUID>로 원문 본문 추출(.file-bottom컨테이너에서 추출, 내비게이션 노이즈 제거 완료).공고 테이블: 말소/취소/분실은 순수 테이블 목록(상세 링크 없음)으로, 컬럼 헤더 기준 동적 매핑으로 파싱합니다.
자체 테스트 결과(2026-08-27)
검증 항목 | 결과 |
의존 환경 | fastmcp 2.14.7 + pydantic 2.13.4 충돌 없음(3.4.x 사용 금지, wheel이 빈 껍데기임) |
12개 MCP 도구 등록 | 전부 통과 |
stdio 프로토콜 연결(list_tools / call_tool) | 통과 |
| 10건 적중, 전체 DB 38132페이지 |
| 위경도 112.92680/23.45318, 배출구 12개, AES 복호화 정상 |
| 42페이지 목록, 단일 페이지 PNG 102757바이트 |
| 2024/2025 연간보고서 + 자체 모니터링 진입 조회 |
| 말소 공고 10건/페이지, 전체 DB 16118페이지 |
| 《오염배출허가 관리 조례》 전문 원문 8099자, 내비게이션 노이즈 없음 |
수정 기록: client.py 데드락(Lock→RLock), get_license_pages 파싱, download_license_page의
dataid/fileType 파라미터 누락, 공고 테이블 파서, 법규 본문 컨테이너 추출.
규정 준수 안내
공개단 데이터만 접근하며, 로그인·캡차 우회가 없습니다.
1초 요청 간격 속도 제한과 로컬 캐시를 내장하여 사이트에 부하를 주지 않습니다.
실시간 배출 데이터는 자동 모니터링 전용망(비공개 인터페이스)에 속하므로, 서비스는 자체 모니터링 플랫폼 진입점을 제공할 뿐 권한을 넘어선 수집을 하지 않습니다.
알려진 한계
부본은 이미지이므로 OCR 레이어(PaddleOCR / Hunyuan 비전 모델 연동 가능)가 텍스트 변환에 필요합니다.
일부 기업에 이행보고서/감독 집행 기록이 없는 경우 해당 테이블이 비어 있는 것은 정상입니다.
get_rectification(기한 내 시정) 인터페이스는 현재 빈 데이터를 반환하며, 파라미터는 추가 조사가 필요합니다. (내용은 AI로 생성되었으며, 참고용입니다)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
EPA Emissions MCP — wraps EPA Envirofacts REST API (free, no auth)
EPA ECHO MCP — wraps EPA ECHO Web Services (free, no auth)
Provide access to Chinese stock market data including historical prices, real-time data, news, and…
Judged, citation-checked policy corpus over MCP. Keyless public reads; API key for AI tools.
Related MCP Servers
- FlicenseNot gradedqualityFmaintenanceEnables querying Chinese enterprise business data including company profiles, shareholder information, investments, branch offices, and key personnel through fuzzy search and detailed lookups.4
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive access to Chinese bidding and tendering data, enabling users to search for companies, analyze bidding statistics, query tender announcements, and discover project opportunities for market analysis and business development.10
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive enterprise qualification and certificate data, including honors, administrative licenses, and professional background statistics. It enables users to search for companies and verify their bidding eligibility or compliance status through natural language queries.3
- FlicenseAqualityDmaintenanceFacilitates retrieval and parsing of Chinese central government policies from gov.cn, offering structured search results and full-text extraction.225
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/xiejianjun000/pollution-permit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server