This repository contains the dSIPRouter MCP Server, which provides an interface to interact with dSIPRouter from conversational AI chatbots such as Claude and ChatGPT.
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.
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"
- dSIPRouter 0.70 or later
- dSIPRouter Core License - Contains a 7 Day Trial License
-
Install dependencies:
pip install -r requirements.txt
-
Set environment variables:
DSIP_BASE_URL: The base URL of your dSIPRouter instanceDSIP_TOKEN: Your dSIPRouter API tokenDSIP_VERIFY_SSL: Whether to verify SSL certificates (default: true)
-
Run the server:
python main.py
Note: You will not see any output if it's running successfully
-
Stop the Server:
Hit Ctrl-C twice to kill the server
-
Configure the MCP Server for one or more conversation AI chatbots per the sections below.
- Open Claude Configuration File:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json- 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"
}
}
}
}
-
Save the file
-
Start Claude
-
Install dependencies:
python -m venv .venv source ./.venv/bin/activate pip install -r requirements.txt -
Set environment variables:
DSIP_BASE_URL: The base URL of your dSIPRouter instanceDSIP_TOKEN: Your dSIPRouter API tokenDSIP_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
-
Run the server:
python main.py
Note: You will not see any output if it's running successfully
-
Stop the Server:
Hit Ctrl-C twice to kill the server
-
Configure the MCP Server for one or more conversation AI chatbots per the sections below.
- Open Claude Configuration File:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json- 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"
}
}
}
}
-
Save the file
-
Start Claude
-
Install dependencies:
pip install -r requirements.txt
-
Set environment variables:
DSIP_BASE_URL: The base URL of your dSIPRouter instanceDSIP_TOKEN: Your dSIPRouter API tokenDSIP_VERIFY_SSL: Whether to verify SSL certificates (default: true)
-
Run the server:
python main.py --http
If you are running this on a machine with an external ip address with access to port 8000 then skipp to the next section on setting up ChatGPT
- Expose the local server using ngrok
Open up another terminal, download ngrok, register with ngrok and start ngrok
ngrok http 8000- Login to ChatGPT
- Click Settings, then Apps
- Enable Developer Mode
- Click Create App
- 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
- Click Create
- Start a new chat and ask it a question like "list all carrier groups in dsiprouter". You will get a response like this
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_TOKENIf you don't have a valid SSL certificate then set DSIP_VERIFY_SSL as false


