一个提供热点新闻头条信息功能的模型上下文协议(Model Context Protocol)服务器。
Project description
Juhe Mobile Phone Location MCP Server
一个提供手机号码(段)所属归属地查询功能的模型上下文协议(Model Context Protocol)服务器。该服务器使大型语言模型(LLMs)能够获取手机号码段归属地信息,如:省份、城市、运营商。
Components
Tools
服务器实现了一个工具:
- get_mobile_phone_location: 根据手机号码查询其所属地信息。
- 需要传入 "phone"(手机号码)作为必须的字符串参数。
async def get_mobile_location(phone: str = "") -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]:
Install
This server requires Python 3.10 or higher. Install dependencies using uv (recommended) or pip
Using uv (recommended)
When using uv no specific installation is needed. We will use uvx to directly run jmobile-location-mcp-server.
uvx jmobile-location-mcp-server
Using PIP
Alternatively you can install jmobile-location-mcp-server via pip:
pip install jmobile-location-mcp-server
After installation, you can run it as a script using:
python -m jmobile_location_mcp_server
Configuration
Environment Variables
JUHE_MOBILE_LOCATION_API_KEY: 聚合数据的手机归属地查询API密钥。获取:https://www.juhe.cn/docs/api/id/11
JUHE_MOBILE_LOCATION_API_KEY=your_api_key
Claude Desktop
- On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json - On Windows:
%APPDATA%/Claude/claude_desktop_config.json
Using uvx
"mcpServers": {
"jmobile-location-mcp-server": {
"command": "uvx",
"args": [
"jmobile-location-mcp-server"
],
"env": {
"JUHE_MOBILE_LOCATION_API_KEY": "your_api_key"
}
}
}
Using pip installation
"mcpServers": {
"jmobile-location-mcp-server": {
"command": "python",
"args": [
"-m",
"jmobile_location_mcp_server"
],
"env": {
"JUHE_MOBILE_LOCATION_API_KEY": "your_api_key"
}
}
}
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
npx @modelcontextprotocol/inspector uvx jmobile-location-mcp-server
Or if you've installed the package in a specific directory or are developing on it:
cd path/to/servers/src/jmobile-location-mcp-server
npx @modelcontextprotocol/inspector uv run jmobile-location-mcp-server
Examples of Questions for Cline
- "查询下这个手机号码的归属地信息 18912341234"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jmobile_location_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: jmobile_location_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a6314368629538b1770ecc43f858d1d22899acb4e132afcdff50a0b3f5b720a
|
|
| MD5 |
9583fadd72a1772678f13efcd1c188ed
|
|
| BLAKE2b-256 |
9136b78c18cf4c24028e4ae879ac2e03ffe50584be2a13dc12c43d6d7aabe878
|
Provenance
The following attestation bundles were made for jmobile_location_mcp_server-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on juhemcp/jmobile-location-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jmobile_location_mcp_server-0.1.0.tar.gz -
Subject digest:
1a6314368629538b1770ecc43f858d1d22899acb4e132afcdff50a0b3f5b720a - Sigstore transparency entry: 184096622
- Sigstore integration time:
-
Permalink:
juhemcp/jmobile-location-mcp-server@2ce7b23e528202da77bc786b03bf2ee5da9f19c8 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/juhemcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2ce7b23e528202da77bc786b03bf2ee5da9f19c8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jmobile_location_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jmobile_location_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e253ce41553c4de8cc6955fea7388e43afe0c7e19fc73c0f72a85837cf5992e5
|
|
| MD5 |
57ddea808699b3da3bc0a3c77e6a39ce
|
|
| BLAKE2b-256 |
bd2a9a318253e52e1b206897164c31c62e44198c4e8f680f0167f33d61a71305
|
Provenance
The following attestation bundles were made for jmobile_location_mcp_server-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on juhemcp/jmobile-location-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jmobile_location_mcp_server-0.1.0-py3-none-any.whl -
Subject digest:
e253ce41553c4de8cc6955fea7388e43afe0c7e19fc73c0f72a85837cf5992e5 - Sigstore transparency entry: 184096629
- Sigstore integration time:
-
Permalink:
juhemcp/jmobile-location-mcp-server@2ce7b23e528202da77bc786b03bf2ee5da9f19c8 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/juhemcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2ce7b23e528202da77bc786b03bf2ee5da9f19c8 -
Trigger Event:
release
-
Statement type: