dSIPRouter MCP Server

dSIPRouter MCP Server

Enables AI assistants to manage dSIPRouter operations such as endpoint groups, carrier groups, inbound mappings, and call data retrieval through natural language.

Category
访问服务器

README

dSIPRouter MCP Server

This repository contains the dSIPRouter MCP Server, which provides an interface to interact with dSIPRouter from conversational AI chatbots such as Claude and ChatGPT.

Overview

The MCP (Model Context Protocol) server allows AI assistants to perform various operations on dSIPRouter, including managing endpoint groups, carrier groups, inbound mappings, and retrieving call data.

Example Questions

Here are some example questions you can ask the AI assistant when using this MCP server:

  • List the endpoint groups of dSIPRouter

  • List the carrier groups of dSIPRouter

  • Create a CSV file with all of the calls that happened yesterday

  • List all inbound numbers

    Here's a screenshoot from Claude when asking to "list all inbound numbers"

    alt text

Requirements

Setup for Claude Desktop

Using Python on Host Machine

Validate that the MCP Server is Working

  1. Install dependencies:

    pip install -r requirements.txt
    
  2. Set environment variables:

    • DSIP_BASE_URL: The base URL of your dSIPRouter instance
    • DSIP_TOKEN: Your dSIPRouter API token
    • DSIP_VERIFY_SSL: Whether to verify SSL certificates (default: true)
    • DSIPMCP_CERT: File location of the certificate
    • DSIPMCP_KEY: File location of the key
    • DSIPMCP_CA: File location of the CA
    • DSIPMCP_PORT: Define the port being used. The default is 443
  3. Run the server:

    python main.py --http
    

    Note: You will not see any output if it's running successfully

  4. Stop the Server:

    Hit Ctrl-C twice to kill the server

  5. Configure the MCP Server for one or more conversation AI chatbots per the sections below.

Configure Claude

Running the MCP Server on your local system

On MacOS
  1. Open Claude Configuration File:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
  1. Add the following:
{
  "mcpServers": {
    "dsiprouter": {
      "command": "python",
      "args": ["/full/path/to/main.py"],
      "env": {
        "DSIP_BASE_URL": "https://your-dsiprouter-server:5000",
        "DSIP_TOKEN": "your-dsiprouter-api-token",
        "DSIP_VERIFY_SSL": "true"
      }
    }
  }
}
  1. Save the file

  2. Start Claude

Using Python using Virtual Environment (venv)

Validate that the MCP Server is Working

  1. Install dependencies:

    python -m venv .venv
    source ./.venv/bin/activate
    pip install -r requirements.txt
    
  2. Set environment variables:

    • DSIP_BASE_URL: The base URL of your dSIPRouter instance
    • DSIP_TOKEN: Your dSIPRouter API token
    • DSIP_VERIFY_SSL: Whether to verify SSL certificates (default: true)

    For example,

    export DSIP_BASE_URL=https://your url:5000
    export DSIP_TOKEN=your token
    export DSIP_VERIFY_SSL=true
    
  3. Run the server:

    python main.py
    

    Note: You will not see any output if it's running successfully

  4. Stop the Server:

    Hit Ctrl-C twice to kill the server

  5. Configure the MCP Server for one or more conversation AI chatbots per the sections below.

Configure Claude

On MacOS
  1. Open Claude Configuration File:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
  1. Add the following:
{
  "mcpServers": {
    "dsiprouter": {
      "command": "<your path>/dsiprouter-mcp-server/.venv/bin/python3",
      "args": ["<your path>/code/dsiprouter-mcp-server/main.py"],
      "env": {
        "DSIP_BASE_URL": "https://your-dsiprouter-server:5000",
        "DSIP_TOKEN": "your-dsiprouter-api-token",
        "DSIP_VERIFY_SSL": "true"
      }
    }
  }
}
  1. Save the file

  2. Start Claude

Setup for ChatGPT

Using Python on Host Machine

Start the MCP Server in HTTP Mode

  1. Install dependencies:

    pip install -r requirements.txt
    
  2. Set environment variables:

    • DSIPMCP_CERT: File location of the certificate
    • DSIPMCP_KEY: File location of the key
    • DSIPMCP_CA: File location of the CA. Not required
    • DSIPMCP_PORT: Define the port being used. The default is 443
    • DSIP_BASE_URL: The base URL of your dSIPRouter instance
    • DSIP_TOKEN: Your dSIPRouter API token
    • DSIP_VERIFY_SSL: Whether to verify SSL certificates (default: true)

For example:

DSIPMCP_CERT=/etc/letsencrypt/live/demo-mcp.dsiprouter.net/fullchain.pem
DSIPMCP_KEY=/etc/letsencrypt/live/demo-mcp.dsiprouter.net/privkey.pem
DSIP_BASE_URL=https://demo.dsiprouter.net:5000
DSIP_TOKEN=<dsiprouter token>
  1. Run the server:
    python main.py --http
    

If you are running this on a machine without external ip address then set the DSIPMCP_PORT=8000 and restart the MCP Server.

  1. Expose the local server using ngrok

Open up another terminal, download ngrok, register with ngrok and start ngrok

ngrok http 8000

Setting up ChatGPT to use the dSIPRouter MCP Server

  1. Login to ChatGPT
  2. Click Settings, then Apps
  3. Enable Developer Mode
  4. Click Create App
  5. Enter in the basic info and for the MCP Server URL enter the ngrok external ip address and add /mcp to the end of it. Note, select No-Authentication. The screen should look like this

alt text

  1. Click Create
  2. Start a new chat and ask it a question like "list all carrier groups in dsiprouter". You will get a response like this

alt text

Other Info

dSIPRouter API Token

The dSIPRouter API Token is displayed after the initial install of dSIPRouter. Their is no way to obtain your token if you didn't store it. You can reset your dSIPRouter API Token by running this command on your dSIPRouter Server.

dsiprouter setcredentials -ac YOUR_TOKEN

No valid dSIPRouter SSL Cert

If you don't have a valid SSL certificate then set DSIP_VERIFY_SSL as false

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选