The Asterisk MCP Server is a middleware component that connects to the Asterisk security API to provide real-time security analysis of code. It implements the Model Context Protocol (MCP) to expose security scanning tools to AI assistants like Claude, Cursor, Cline, and Windsurf, enabling them to analyze code for security vulnerabilities.
flowchart LR
IDE["IDE / Code Editor"] <--> |MCP Protocol| MCP["Asterisk MCP Server"]
MCP <--> |HTTP/HTTPS| API["Asterisk Vulnerability Scanner API"]
classDef primary fill:#6696FF,stroke:#333,stroke-width:1px,color:white;
classDef secondary fill:#45556B,stroke:#333,stroke-width:1px,color:white;
classDef tertiary fill:#FFCC00,stroke:#333,stroke-width:1px,color:black;
class IDE primary;
class MCP secondary;
class API tertiary;
{
"mcpServers": {
"asterisk-mcp": {
"command": "pipx",
"args": [
"run",
"asterisk-mcp-server",
"--api-url",
"https://api.mcp.asterisk.so",
"--transport",
"stdio",
"--key",
"YOUR_API_KEY"
],
"timeout": 3600
}
}
}
Configuration can be provided through command-line arguments or the settings UI.
--api-url
: Base URL for the Asterisk API server.--key
: API key for authentication (required for API access).--timeout
: Timeout for API requests in seconds (0 for no timeout).--server-name
: Name of the MCP server.--transport
: Transport protocol for the MCP server (stdio or sse).--port
: Port for the SSE server (used with --transport sse).--log-level
: Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL).--no-console
: Disable console output (only log to file).scan_snippet
Scans individual code snippets for security vulnerabilities.
scan_codebase
Scans multiple files for security issues.
verify
Verifies if code changes introduce security vulnerabilities.
settings
Opens the settings UI when the user enters "/asterisk".
This project is licensed under the Apache License, Version 2.0. See the LICENSE file in the repository for the full license text.
Asterisk Model Context Protocol (MCP) server. mcp.asterisk.so.