This guide provides deployment options for the Devici MCP Server using modern Python tooling.
- Devici instance URL
- Devici API credentials (Client ID and Secret - generate in Devici under Settings > API Access)
- uv installed (recommended)
- Python 3.10+ (if using pip directly)
All deployment methods require setting environment variables:
DEVICI_API_BASE_URL: Your Devici instance URL (e.g.,https://api.devici.com)DEVICI_CLIENT_ID: Your Devici client IDDEVICI_CLIENT_SECRET: Your Devici client secret
The easiest way to run the server without installation:
# Set environment variables
export DEVICI_API_BASE_URL="https://api.devici.com"
export DEVICI_CLIENT_ID="your-client-id-here"
export DEVICI_CLIENT_SECRET="your-client-secret-here"
# Run directly with uvx from GitHub
uvx git+https://github.com/geoffwhittington/devici-mcp.git
# Once published to PyPI (future):
# uvx devici-mcp-serverInstall the package with uv:
# Install the package from GitHub
uv pip install git+https://github.com/geoffwhittington/devici-mcp.git
# Set environment variables
export DEVICI_API_BASE_URL="https://api.devici.com"
export DEVICI_CLIENT_ID="your-client-id-here"
export DEVICI_CLIENT_SECRET="your-client-secret-here"
# Run the server
devici-mcp-server# Install the package from GitHub
pip install git+https://github.com/geoffwhittington/devici-mcp.git
# Set environment variables
export DEVICI_API_BASE_URL="https://api.devici.com"
export DEVICI_CLIENT_ID="your-client-id-here"
export DEVICI_CLIENT_SECRET="your-client-secret-here"
# Run the server
devici-mcp-serverFor development or local modifications:
# Clone the repository
git clone https://github.com/geoffwhittington/devici-mcp.git
cd devici-mcp
# Create virtual environment and install dependencies
uv sync
# Set environment variables
export DEVICI_API_BASE_URL="https://api.devici.com"
export DEVICI_CLIENT_ID="your-client-id-here"
export DEVICI_CLIENT_SECRET="your-client-secret-here"
# Run in development mode
uv run python -m devici_mcp_serverTo configure the Devici MCP server in Cursor:
- Open Cursor
- Go to Settings (Ctrl/Cmd + ,)
- Search for "MCP" or navigate to Extensions > Model Context Protocol
Choose one of the following configuration options:
{
"mcpServers": {
"devici": {
"command": "uvx",
"args": ["git+https://github.com/geoffwhittington/devici-mcp.git"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}If you have installed the package locally with pip or uv pip install:
{
"mcpServers": {
"devici": {
"command": "devici-mcp-server",
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}If you have the source code and want to run it directly:
{
"mcpServers": {
"devici": {
"command": "python",
"args": ["-m", "devici_mcp_server"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
},
"cwd": "/path/to/devici-mcp"
}
}
}After adding the configuration, restart Cursor for the changes to take effect.
- Open a chat or use the AI assistant in Cursor
- The Devici tools should now be available
- You can ask questions like "List all users in Devici" or "Show me threat models for collection ID 123"
Add this to your Claude Desktop configuration file (~/.config/claude-desktop/claude_desktop_config.json):
{
"mcpServers": {
"devici": {
"command": "uvx",
"args": ["git+https://github.com/geoffwhittington/devici-mcp.git"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}Add this to your Cline MCP settings:
{
"mcpServers": {
"devici": {
"command": "uvx",
"args": ["git+https://github.com/geoffwhittington/devici-mcp.git"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}Add this to your Continue configuration:
{
"mcpServers": {
"devici": {
"command": "uvx",
"args": ["git+https://github.com/geoffwhittington/devici-mcp.git"],
"env": {
"DEVICI_API_BASE_URL": "https://api.devici.com",
"DEVICI_CLIENT_ID": "your-client-id-here",
"DEVICI_CLIENT_SECRET": "your-client-secret-here"
}
}
}
}Create a .env file in your working directory:
DEVICI_API_BASE_URL=https://api.devici.com
DEVICI_CLIENT_ID=your-client-id-here
DEVICI_CLIENT_SECRET=your-client-secret-here
The server will automatically load these variables if the file is present.
# Test that the package can be imported
python -c "import devici_mcp_server; print('✓ Package imported successfully')"# Run with test environment variables
DEVICI_API_BASE_URL=https://api.devici.com DEVICI_CLIENT_ID=test DEVICI_CLIENT_SECRET=test uvx git+https://github.com/geoffwhittington/devici-mcp.git-
"Command not found: uvx"
- Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh - Or use pip:
pip install uv
- Install uv:
-
"Authentication failed"
- Verify your
DEVICI_API_BASE_URLis correct - Check that your
DEVICI_CLIENT_IDandDEVICI_CLIENT_SECRETare valid - Ensure the client credentials have the necessary permissions
- Verify your
-
"Connection timeout"
- Check network connectivity
- Verify firewall settings
- Ensure Devici instance is accessible
Run with debug logging:
# Enable debug logging
export DEBUG=true
uvx git+https://github.com/geoffwhittington/devici-mcp.gitFor additional support, see the main README.md or open an issue in the repository.