CMP MCP Server

CMP MCP Server

Enables integration with CMP (Connectivity Management Platform) API to query and manage SIM card information, including filtering SIM lists and retrieving detailed SIM card usage statistics.

Category
访问服务器

README

CMP MCP Server

A Model Context Protocol (MCP) server for CMP (Connectivity Management Platform) API integration, built for Cloudflare Workers.

Features

  • 🔍 Query SIM List - Retrieve SIM cards with filtering options (status, date range, ICCID range, etc.)
  • 📱 Query SIM Details - Get comprehensive SIM card information including usage statistics
  • 🔐 Secure Authentication - HMAC-SHA256 signature-based API authentication
  • ☁️ Cloudflare Workers - Serverless deployment with global edge network
  • 🌐 MCP Compatible - Works with Claude Desktop and other MCP clients

Quick Start

1. Environment Setup

Create your environment variables in Cloudflare Workers dashboard:

# Required environment variables (set as secrets in Cloudflare)
CMP_APP_KEY=your_cmp_app_key
CMP_APP_SECRET=your_cmp_app_secret

The CMP_ENDPOINT is already configured in wrangler.jsonc.

2. Deploy to Cloudflare Workers

# Install dependencies
npm install

# Deploy to Cloudflare Workers
npm run deploy

3. Local Development

# Copy environment template
cp .env.example .env

# Edit .env with your actual credentials
# Then start development server
npm run dev

Configuration

Environment Variables

Variable Description Required
CMP_APP_KEY Your CMP API application key
CMP_APP_SECRET Your CMP API application secret
CMP_ENDPOINT CMP API endpoint URL ❌ (defaults to production)

Setting Secrets in Cloudflare

# Set your API credentials as secrets
wrangler secret put CMP_APP_KEY
wrangler secret put CMP_APP_SECRET

Available Tools

query_sim_list

Query SIM cards with filtering options.

Parameters:

  • pageNum (optional): Page number (default: 1)
  • pageSize (optional): Records per page (default: 10, max: 1000)
  • enterpriseDataPlan (optional): Enterprise data plan name
  • expirationTimeStart (optional): Start expiration date (yyyy-MM-dd)
  • expirationTimeEnd (optional): End expiration date (yyyy-MM-dd)
  • iccidStart (optional): ICCID start range
  • iccidEnd (optional): ICCID end range
  • label (optional): SIM card label
  • simState (optional): SIM state (2=Pre-activation, 3=Test, 4=Silent, 5=Standby, 6=Active, 7=Shutdown, 8=Pause, 10=Pre-logout, 11=Logout)
  • simType (optional): SIM card type

query_sim_detail

Get detailed information for a specific SIM card.

Parameters:

  • iccid (required): SIM card ICCID number

Connect to Claude Desktop

To connect your MCP server to Claude Desktop, follow Anthropic's Quickstart and update your Claude Desktop configuration:

{
  "mcpServers": {
    "cmp-server": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://your-cmp-server.workers.dev/sse"
      ]
    }
  }
}

Connect to Cloudflare AI Playground

  1. Go to https://playground.ai.cloudflare.com/
  2. Enter your deployed MCP server URL (your-cmp-server.workers.dev/sse)
  3. Start using your CMP tools directly!

Development

Project Structure

src/
├── index.ts        # Main MCP server implementation
├── cmp_client.ts   # CMP API client with authentication
└── ...

Scripts

npm run dev         # Start development server
npm run deploy      # Deploy to Cloudflare Workers
npm run type-check  # Run TypeScript type checking
npm run lint:fix    # Fix linting issues
npm run format      # Format code

Security

  • ✅ API credentials stored as Cloudflare Workers secrets
  • ✅ HMAC-SHA256 signature authentication
  • ✅ Environment variables validation
  • ✅ No sensitive data in source code
  • .gitignore configured for security

License

MIT License - see LICENSE file for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选