Block a user
sms-mcp-server (0.1.0)
Published 2026-04-04 18:18:26 +08:00 by luofengyuan
Installation
pip install --index-url https://git.599520.xyz/api/packages/luofengyuan/pypi/simple/ --extra-index-url https://pypi.org/simple sms-mcp-serverAbout this package
Internal SMS multi-provider MCP server built with FastMCP
sms-mcp-server
Internal/private SMS MCP server built with uv + FastMCP (3.x) + src package layout.
- Multi-provider aggregation:
grizzlysms/smsactivate-like/5sim - Unified tools: balance, catalog, price compare, order, polling code, update status, list orders
- Provider-native tools: API-level access for major endpoints in current scope
- Transport:
stdioandstreamable-http
This repository is intended for internal use.
1) Quickstart
Install dependencies
uv sync --dev
Configure environment
cp .env.example .env
# edit .env and fill provider API keys
Run server (stdio)
uv run sms-mcp-server --transport stdio
Run server (streamable-http)
uv run sms-mcp-server --transport streamable-http --host 0.0.0.0 --port 8000 --path /mcp
2) Core unified tools
sms_available_providerssms_get_balancessms_list_catalogsms_compare_pricessms_place_order- explicit provider mode: pass
provider - compare mode: set
compare=true, optionalprovidersfor candidate set
- explicit provider mode: pass
sms_get_order_statussms_wait_for_codesms_update_ordersms_list_orders
sms_wait_for_code redaction behavior
- New configurable
redaction_modeparameter:none: no redactionstrict: removefull_textandraw
- Backward-compatible parameter:
include_full_sms=true=> equivalent toredaction_mode=noneinclude_full_sms=false=> equivalent toredaction_mode=strict
- Default behavior (when both omitted):
- controlled by
SMS_MCP_DEFAULT_CODE_REDACTION_MODE - default value is
none(no redaction)
- controlled by
3) Provider-native tools
grizzlysms
grizzlysms_get_balancegrizzlysms_get_countriesgrizzlysms_get_services_listgrizzlysms_get_pricesgrizzlysms_get_prices_v2grizzlysms_get_prices_v3grizzlysms_get_numbergrizzlysms_get_number_v2grizzlysms_get_statusgrizzlysms_get_status_v2grizzlysms_set_status
smsactivate-like
smsactivate_get_balancesmsactivate_get_country_and_operatorssmsactivate_get_services_and_costsmsactivate_get_services_and_cost_with_statisticssmsactivate_get_pricessmsactivate_get_numbersmsactivate_get_number_v2smsactivate_get_statussmsactivate_set_statussmsactivate_get_current_activations_list
5sim
fivesim_get_profilefivesim_guest_countriesfivesim_guest_productsfivesim_guest_pricesfivesim_buy_activationfivesim_check_orderfivesim_finish_orderfivesim_cancel_orderfivesim_ban_orderfivesim_list_orders
4) Development
uv run ruff check .
uv run mypy src
uv run pytest
uv build
5) GitHub Actions -> Gitea
This repo includes two workflows:
- CI (
.github/workflows/ci.yml)- lint + typecheck + tests + build
- Release to Gitea (
.github/workflows/release-gitea.yml)- build package
- publish wheel/sdist to Gitea Packages (PyPI registry)
- mirror git branches/tags to Gitea repository
Required GitHub secrets
GITEA_PYPI_PUBLISH_URL(upload endpoint)GITEA_PYPI_CHECK_URL(optional but recommended)GITEA_USERNAMEGITEA_PATGITEA_MIRROR_REPO_URL(https URL without credentials)
The workflow injects credentials at runtime only.
6) Reference docs
- FastMCP installation/quickstart:
- MCP server build:
- Scaffolding reference:
- SMS APIs:
Requirements
Requires Python: >=3.10