Back to Browse

Smshub MCP Server

Developer ToolsLow Risk8.7MCP RegistryLocalRemote
Free

Server data from the Official MCP Registry

Receive SMS on a dedicated US number for your AI agent: read texts and one-time codes. $5/month.

About

Receive SMS on a dedicated US number for your AI agent: read texts and one-time codes. $5/month.

Remote endpoints: streamable-http: https://smshub.dev/api/mcp

Security Report

8.7
Low Risk8.7Low Risk

Valid MCP server (1 strong, 1 medium validity signals). 2 known CVEs in dependencies ⚠️ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

Endpoint verified · Requires authentication · 4 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Your smshub.dev API key (create one at https://smshub.dev/settings/api-keys)Required

Environment variable: SMSHUB_API_KEY

How to Install & Connect

Available as Local & Remote

This plugin can run on your machine or connect to a hosted endpoint. during install.

Documentation

View on GitHub

From the project's GitHub README.

SMSHub

Next.js React TypeScript Supabase Expo Electron Tests License: MIT PRs Welcome

A multi-platform, real-time SMS messaging platform with unified inbox, multi-provider support (Twilio + Telnyx), and an API-first architecture.

🚀 Coming Soon: phonenumbers.bot — Real SIM phone numbers with a developer-first API

Platforms

PlatformTechStatus
🌐 WebNext.js 16 (App Router)✅ v1
📲 PWAService Worker + Manifest✅ v1
📱 iOSReact Native (Expo)✅ v1
🤖 AndroidReact Native (Expo)✅ v1
🖥 DesktopElectron✅ v1
⌨️ CLI / TUI / MCPsmshub-cli (cli/)✅ v1

Install the CLI (rent numbers, read texts and codes from a terminal or an agent):

curl -fsSL https://smshub.dev/cli/install.sh | sh

https://smshub.dev/install.sh stays the desktop app installer.

Giving an AI agent its own number? examples/agent-inbox is a dependency-free Node quickstart: wait for a one-time code over REST, verify and print signed message.received webhooks, and MCP config for Claude Code and Cursor.

Features

  • Unified Inbox — Threaded conversations across all devices
  • Real-time Messaging — Sub-second updates via Supabase Realtime
  • Multi-Provider — Twilio + Telnyx with unified API (sendSMS())
  • Compose Flow — New message modal with sender number picker
  • Unread Tracking — Badge counts, auto-mark read on open
  • Search — Filter conversations by name or phone number
  • Contact Management — Auto-create on inbound, inline name editing
  • Delivery Receipts — Live status updates (queued → sent → delivered → failed)
  • Keyboard Shortcuts — Ctrl+N (compose), Ctrl+K (search), arrows, Escape
  • Push Notifications — Native on mobile (Expo), OS notifications on desktop (Electron)
  • PWA — Installable, offline support, background sync
  • Dark Mode — Default, developer-focused UI

Tech Stack

LayerTechnology
FrontendNext.js 16, React 19, TailwindCSS
MobileReact Native, Expo, expo-router
DesktopElectron, electron-builder
BackendNext.js API routes
DatabaseSupabase (Postgres + Realtime + Auth + RLS)
ProvidersTwilio, Telnyx
TestingVitest (110 tests), Playwright e2e
CIHusky pre-commit (tests + typecheck + lint)
Mobile DeployExpo EAS (expo.dev)
Desktop Buildelectron-builder (AppImage, dmg, NSIS)

Getting Started

Prerequisites

  • Bun 1.4 (package manager and runtime for the web app)
  • pnpm (for mobile/ and electron/ only)
  • A Supabase project
  • Twilio and/or Telnyx account(s)

Setup

# Install dependencies
bun install

# Copy env file and fill in your values
cp .env.example .env

# Run database migrations against your Supabase project
# (paste supabase/migrations/*.sql into the Supabase SQL editor)

# Start dev server
bun dev

Mobile (Expo)

cd mobile
pnpm install
npx expo start

# Build for iOS/Android via Expo EAS
eas build --profile production --platform all

Desktop (Electron)

cd electron
pnpm install
pnpm dev

# Package distributable
pnpm package

Environment Variables

VariableDescription
NEXT_PUBLIC_SUPABASE_URLSupabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEYSupabase anon/public key
SUPABASE_SERVICE_ROLE_KEYSupabase service role key (server-only)
TWILIO_ACCOUNT_SIDTwilio Account SID
TWILIO_AUTH_TOKENTwilio Auth Token
TELNYX_API_KEYTelnyx API Key
TELNYX_PUBLIC_KEYTelnyx Public Key (webhook verification)
NEXT_PUBLIC_APP_URLApp URL (default: http://localhost:3000)

Project Structure

src/                          # Web app (Next.js)
├── app/
│   ├── api/
│   │   ├── contacts/         # GET, PATCH /api/contacts/[id]
│   │   ├── conversations/    # GET, POST /api/conversations/[id]/read
│   │   ├── messages/         # GET, POST /api/messages/send
│   │   ├── providers/        # DELETE /api/providers/[id]
│   │   ├── phone-numbers/    # DELETE /api/phone-numbers/[id]
│   │   └── webhooks/         # Twilio + Telnyx inbound & status callbacks
│   ├── login/                # Login page
│   ├── register/             # Register page
│   ├── settings/             # Provider & phone number management
│   ├── phonenumbers/         # phonenumbers.bot coming soon page
│   └── offline/              # PWA offline fallback
├── components/
│   ├── inbox-client.tsx      # Main inbox (sidebar + chat + realtime)
│   ├── new-message-modal.tsx # Compose new conversation
│   ├── contact-name-editor.tsx
│   ├── toast-container.tsx   # Toast notifications
│   └── sw-register.tsx       # Service worker registration
├── contexts/
│   └── toast-context.tsx     # Global toast state
├── lib/
│   ├── providers/            # Twilio + Telnyx unified layer
│   ├── supabase/             # Client/server/middleware helpers
│   └── types/                # TypeScript definitions
├── middleware.ts              # Auth guard
mobile/                        # React Native (Expo)
├── app/                       # expo-router screens
│   ├── (tabs)/                # Inbox + Settings tabs
│   ├── chat/[id].tsx          # Chat screen
│   └── auth.tsx               # Login/register
├── lib/                       # Supabase, API client, notifications
└── eas.json                   # Expo EAS build profiles
electron/                      # Desktop app
├── main.ts                    # Window + tray + IPC
├── preload.ts                 # Renderer bridge
├── notifications.ts           # Supabase Realtime → OS notifications
├── updater.ts                 # Auto-updater
└── electron-builder.yml       # Build config
supabase/
└── migrations/                # 001_initial_schema + 002_unread_tracking

API Endpoints

MethodEndpointDescription
POST/api/messages/sendSend an SMS
GET/api/messages?conversation_id=Get messages for a conversation
GET/api/conversationsList conversations
POST/api/conversations/[id]/readMark conversation as read
GET/api/contactsList contacts
PATCH/api/contacts/[id]Update contact name
DELETE/api/providers/[id]Delete a provider
DELETE/api/phone-numbers/[id]Delete a phone number
POST/api/webhooks/twilioTwilio inbound webhook
POST/api/webhooks/telnyxTelnyx messaging-profile webhook: inbound messages and delivery outcomes
POST/api/webhooks/twilio/statusTwilio delivery status callback
POST/api/webhooks/telnyx/statusTelnyx delivery status callback

Outbound messages are stored as sent once the provider accepts them. Telnyx reports the carrier outcome later in message.finalized; smshub records it as delivered or failed with error_code / error_detail (for example 40010, "Not 10DLC registered") and the inbox shows the reason. Each Telnyx send sets webhook_url to /api/webhooks/telnyx, so this works even when the messaging profile has no webhook configured. Rows sent before that can be re-checked with bun scripts/telnyx-backfill-status.ts --dry-run (see the script header).

Scripts

pnpm dev              # Start development server
pnpm build            # Production build
pnpm start            # Start production server
pnpm test             # Run unit and contract tests
pnpm test:e2e         # Run Playwright e2e tests
pnpm test:watch       # Run tests in watch mode
pnpm test:coverage    # Run tests with coverage
pnpm lint             # Lint source files
pnpm typecheck        # TypeScript type checking

Pre-commit Hook

Every commit automatically runs:

  1. 🧪 Tests — vitest run
  2. 🔍 Type check — tsc --noEmit
  3. ✨ Lint — eslint --fix on staged .ts/.tsx files

Database Schema

Tables: providers, phone_numbers, contacts, conversations, messages

  • Row Level Security (RLS) on all tables
  • Realtime enabled on messages and conversations
  • Unread tracking via last_read_at + computed count

See supabase/migrations/ for the full schema.

Contributing

PRs welcome! Please ensure all checks pass before submitting:

pnpm test && pnpm test:e2e && pnpm typecheck && pnpm lint

License

MIT

Reviews

No reviews yet

Be the first to review this server!