Skip to main content

A Model Context Protocol (MCP) server for sending SMS via free Philippines APIs and managing local contacts.

Project description

MCP SMS Server (Philippines)

A Model Context Protocol (MCP) server that provides SMS capabilities (via a free API) and a local contacts management system.

Setup

  1. Prerequisites: Python 3.10+, uv
  2. Install Dependencies:
    uv sync
    # OR if managing manually:
    uv pip install mcp[cli] httpx pydantic pydantic-settings python-dotenv sqlmodel
    
  3. Configure Environment: Create a .env file in the root directory:
    SMS_API_KEY=your_actual_api_key_here
    SMS_API_BASE_URL=https://sms-api-ph-gceo.onrender.com
    DB_PATH=sqlite:///data/app.db
    LOG_LEVEL=INFO
    

Running the Server

1. Manual Testing (Script)

To verify the database and API logic without the full MCP server:

uv run test_manual.py

This will create a test contact and attempt a dry-run SMS send.

2. Run via CLI (MCP)

To start the standard IO server (mainly for debugging or piping):

uv run main.py

Note: This will appear to hang as it waits for JSON-RPC input.

3. Run with MCP Inspector (Web UI)

If you have npx installed:

npx @modelcontextprotocol/inspector uv run main.py

Integration with Claude Desktop

To use this server with Claude Desktop, add the following to your config file:

Windows Config Path: %APPDATA%\Claude\claude_desktop_config.json
(Usually C:\Users\YOUR_USER\AppData\Roaming\Claude\claude_desktop_config.json)

{
  "mcpServers": {
    "sms-ph": {
      "command": "uv",
      "args": [
        "run",
        "--with", "mcp[cli]",
        "--with", "httpx",
        "--with", "pydantic",
        "--with", "pydantic-settings",
        "--with", "python-dotenv",
        "--with", "sqlmodel",
        "d:/User/path-to-your-mcp/mcp-ph-sms/main.py"
      ],
      "cwd": "d:/User/path-to-your-mcp/mcp-ph-sms",
      "env": {
        "SMS_API_KEY": "your_key_here"
      }
    }
  }
}

Alternative (if project is already synced via uv sync):

{
  "mcpServers": {
    "sms-ph": {
      "command": "uv",
      "args": [
        "run",
        "d:/User/path-to-your-mcp/mcp-ph-sms/main.py"
      ],
      "cwd": "d:/User/path-to-your-mcp/mcp-ph-sms",
      "env": {
        "SMS_API_KEY": "your_key_here"
      }
    }
  }
}

Important:

  • Ensure uv is in your system PATH.
  • cwd ensures uv picks up the .env and pyproject.toml from the correct directory.
  • You can omit env in the JSON if you have the .env file correctly set up.

Features

  • Contacts: Create, List, Update, Delete contacts with tags and notes.
  • SMS: Send messages (throttled to 1 per 10s), view history.
  • Tools: contacts.list, contacts.create, sms.send, etc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_ph_sms-0.1.2.tar.gz (56.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_ph_sms-0.1.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_ph_sms-0.1.2.tar.gz.

File metadata

  • Download URL: mcp_ph_sms-0.1.2.tar.gz
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_ph_sms-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f52d7aa167db5f46225526ac88e2f37ebf71b75453b738138fc64ec0f3678363
MD5 59ee14c8659f95b95c9851f9b246d8f8
BLAKE2b-256 eb6f73f2ba75e2b57684d37bb2e66fad873e6991e77f7d6a4145ff4f8b14aaec

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_ph_sms-0.1.2.tar.gz:

Publisher: release.yml on jansencruz23/mcp-ph-sms

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_ph_sms-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mcp_ph_sms-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_ph_sms-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 20b36e091db60efcae869de39c5bdd57153ca73bbef9b71ff264b7e2945d9253
MD5 039cab664c20bead81d84d2e3f65dc1f
BLAKE2b-256 8a4207832f75743426a848af684486989411f93357741075beada025e4db81d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_ph_sms-0.1.2-py3-none-any.whl:

Publisher: release.yml on jansencruz23/mcp-ph-sms

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page