Sponsored by Deepsite.site

Asterisk MCP Server

Created By
getAsterisk9 months ago
Asterisk Model Context Protocol (MCP) server.
Content

Asterisk MCP Server

A Model Context Protocol (MCP) server that provides security scanning capabilities for code snippets, codebases, and verification of code changes.

Overview

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, Windsurf, etc. enabling them to analyze code for security vulnerabilities.

Architecture

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;

Features

  • Code Snippet Scanning: Analyze individual code snippets for security vulnerabilities
  • Codebase Scanning: Scan multiple files for security issues with accurate context coverage
  • Change Verification: Verify if code changes in your chat history introduce security vulnerabilities
  • Beautiful Settings UI: Configure the server through a graphical interface
  • Flexible Transport: Support for stdio and SSE transport protocols
  • Comprehensive Logging: Detailed logging with configurable verbosity

Requirements

  • Python 3.10+
  • pipx / uvx
  • httpx
  • mcp[cli]
  • dearpygui (for settings UI)

Usage

{
  "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

Configuration can be provided through command-line arguments or the settings UI:

API Server Settings

  • --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)

MCP Server Settings

  • --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)

Logging Settings

  • --log-level: Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
  • --no-console: Disable console output (only log to file)

Available Tools

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".

Data Flow

  1. The IDE or code editor sends a request to the Asterisk MCP Server using the MCP protocol
  2. The MCP server processes the request and forwards it to the Asterisk Vulnerability Scanner API
  3. The API analyzes the code and returns security findings
  4. The MCP server formats the results and returns them to the IDE/editor
  5. The IDE/editor presents the security analysis to the user

Troubleshooting

Connection Issues

  • Verify that the API URL is correct and accessible
  • Check that your API key is valid and has not expired
  • Ensure your network allows connections to the API server

Authentication Errors

  • Verify your API key is correctly set in the configuration
  • Check that your API key has the necessary permissions
  • Regenerate your API key from the dashboard if necessary

Timeout Errors

  • Increase the API timeout setting for large codebases
  • Consider analyzing smaller portions of code separately
  • Check your network connection stability

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file in the repository for the full license text.

Getting Help

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Serper MCP ServerA Serper MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Tavily Mcp
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Amap Maps高德地图官方 MCP Server