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 文件了解详情。
如果你遇到任何问题或有建议,请:
⭐ 如果这个项目对你有帮助,请给它一个星标!
Allows Large Language Models to interact with a GameBoy emulator via the serverboy MCP server.
A server for creating fast and free lipsync videos for digital avatars, supporting both realistic and cartoon styles.
Provides real-time system information and metrics, including CPU, memory, disk, network, and process status.
A damage and status calculator for Pokemon Generation 3.
MCP to interface with multiple blockchains, staking, DeFi, swap, bridging, wallet management, DCA, Limit Orders, Coin Lookup, Tracking and more.
Provides emotional support and positive reinforcement for LLMs, with customizable therapeutic personas.
Access real-time gaming data across popular titles like League of Legends, TFT, and Valorant, offering champion analytics, esports schedules, meta compositions, and character statistics.
Enables AI assistants to query, read, and move data on DICOM servers like PACS and VNA.
Multimodal MCP server for generating images, audio, and text with no authentication required
Provides real-time weather information for any location.