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 Server
基于全国排污许可证管理信息平台公开端(permit.mee.gov.cn)的穿透式 MCP 服务。 输入任意企业名,即可秒级调出许可证正副本、排放口经纬度、证后管理实时情况、政策法规全文。
特性
能力 | 说明 |
企业检索 | 省/市/单位名/许可证编号/行业 分页查询,覆盖全国 3.8 万+ 页 |
许可证详情 | 基本信息、正本版本、副本摘要、经纬度隐藏字段、排放口点位(AES 自动解密) |
副本全文 | 逐页 PNG 下载(约 42 页),对接上层 OCR 还原全文(工艺流程/产品/排放标准) |
证后管理 | 执行报告(报告期/治理设施运行/达标情况)、监督执法、自行监测入口 |
公告 | 限期整改、注销/撤销/遗失声明 |
政策法规 | 6 大分类目录 + 全文明文 + 附件下载 |
工程化 | WebShield 会话自动维护、1s 限速、指数退避重试、SQLite 缓存 |
Related MCP server: Bidding MCP Server
快速开始
pip install -r requirements.txt
python server.pyMCP 客户端按标准协议连接后即可调用工具。
工具清单
工具 | 作用 |
| 查询许可公开信息列表(返回 dataid) |
| 详情:文本信息 + 经纬度 + 排放口点位 |
| 副本图片页清单 |
| 下载副本单页 PNG(供 OCR) |
| 排放口二维码地址 |
| 证后管理:执行报告/监督执法/自行监测 |
| 限期整改公示 |
| 注销/撤销/遗失公告 |
| 政策法规分类目录 |
| 政策法规全文 |
| 排放口点位解密结果 |
| 自行监测平台对接地址 |
架构
server.py (FastMCP 入口)
└─ permit_mcp/tools.py 工具定义(12 个)
├─ client.py WebShield 会话 / 限速 / 重试 / 缓存
├─ parser.py HTML→JSON / AES-ECB 解密 / 表格解析
└─ config.py 接口地址与常量穿透实现要点
免登录:公开端无需账号,仅需 WebShield 会话 token(自动访问首页预热)。
列表接口:
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 条,全库 38132 页 |
| 经纬度 112.92680/23.45318,排放口 12 个,AES 解密正常 |
| 42 页清单,单页 PNG 102757 字节 |
| 拉取 2024/2025 年报 + 自行监测入口 |
| 注销公告 10 条/页,全库 16118 页 |
| 《排污许可管理条例》全文明文 8099 字符,无导航噪音 |
修复记录:client.py 死锁(Lock→RLock)、get_license_pages 解析、download_license_page 缺
dataid/fileType 参数、公告表格解析器、法规正文容器提取。
合规说明
仅访问公开端数据,无登录、无验证码绕过。
内置 1 秒请求间隔限速与本地缓存,避免对站点造成压力。
实时排放数据属自动监控专网(非公开接口),服务提供自行监测平台入口而非越权抓取。
已知边界
副本为图片,需 OCR 层(可接入 PaddleOCR / 混元视觉模型)转文本。
部分企业无执行报告/监督执法记录时,对应表格为空属正常。
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