Detects Chinese mobile phone carriers, including China Mobile, China Unicom, China Telecom, and virtual operators.
一个用于检测中国手机号码运营商和归属地的 MCP (Model Context Protocol) 服务器。
运营商 | 主要号段 |
---|---|
中国移动 | 134-139, 147, 150-152, 157-159, 172, 178, 182-184, 187-188, 198 |
中国联通 | 130-132, 145, 155-156, 166, 175-176, 185-186 |
中国电信 | 133, 149, 153, 173, 177, 180-181, 189, 199 |
中国广电 | 192 |
中国铁通 | 174 |
git clone https://github.com/dahuangbaojian/sms-mcp-server.git
cd sms-mcp-server
项目使用 Python 标准库实现,无需额外依赖。如需运行测试:
pip install pytest
{
"mcpServers": {
"phone-carrier-detector": {
"command": "python",
"args": ["mcp_server.py"],
"env": {}
}
}
}
请帮我检测手机号码 13812345678 的运营商和归属地信息
请帮我批量检测这些号码的运营商和归属地:13812345678, 18687654321, 13312345678
检测单个手机号码的运营商和归属地信息。
参数:
phone_number
(string): 要检测的手机号码(11位数字)示例输出:
{
"success": true,
"phone_number": "13812345678",
"carrier": "China Mobile",
"carrier_cn": "移动",
"province": "江苏",
"city": "连云港",
"prefix": "1381234"
}
批量检测多个手机号码的运营商和归属地信息。
参数:
phone_numbers
(array): 要检测的手机号码列表(最多100个)示例输出:
{
"success": true,
"total": 3,
"results": [
{
"success": true,
"phone_number": "13812345678",
"carrier": "China Mobile",
"province": "江苏",
"city": "连云港"
}
]
}
项目使用真实的中国手机号归属地数据库,包含:
# 运行所有测试
python tests/run_tests.py --all
# 运行单元测试
python tests/run_tests.py --unit
# 运行集成测试
python tests/run_tests.py --integration
# 运行数据解析器测试
python tests/run_tests.py --data
# 从原始数据文件生成数据库
python parse_phone_data.py
python mcp_server.py
.
├── mcp_server.py # MCP协议主服务
├── parse_phone_data.py # 数据解析脚本
├── data/ # 数据目录
│ ├── 手机号归属地1219.txt # 原始数据文件
│ └── phone_database.json # 解析后的数据库
├── tests/ # 测试目录
│ ├── test_mcp_server.py # 单元测试
│ ├── test_mcp_integration.py # 集成测试
│ ├── test_data_parser.py # 数据解析测试
│ └── run_tests.py # 测试运行器
├── package.json # MCP配置
├── mcp-metadata.json # MCP元数据
└── README.md # 项目说明
欢迎提交 Issue 和 Pull Request!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情。
如果你遇到任何问题或有建议,请:
⭐ 如果这个项目对你有帮助,请给它一个星标!
A TypeScript-based MCP server for interacting with the Etsy API, featuring a simple notes system.
generate lyrics, song and background music(instrumental)
A 3D Printing MCP server that allows for querying for live state, webcam snapshots, and 3D printer control.
Interact with EduBase, a comprehensive e-learning platform with advanced quizzing, exam management, and content organization capabilities
Connects Large Language Models (LLMs) with Guild Wars 2 data sources. Requires a Guild Wars 2 API key for wallet functionality.
PiAPI MCP server makes user able to generate media content with Midjourney/Flux/Kling/Hunyuan/Udio/Trellis directly from Claude or any other MCP-compatible apps.
Enable AI Agents to purchase anything in a secure way using Fewsats
MCP Server for DealX platform
Generates true random coin flips using the random.org API.
Fulcra Context MCP server for accessing your personal health, workouts, sleep, location, and more, all privately. Built around Context by Fulcra.