A powerful AI-driven Security Operations Center (SOC) Text2SQL framework based MCP Server (Local and Remote) for converting natural language Prompts to SQL queries dynamically, with integrated security threat analysis and monitoring. - Text2SQL Conversion: Convert natural language queries to optimized SQL - Multiple Interfaces: Support for STDIO, SSE, and REST API - Security Threat Analysis: Built
Add this skill
npx mdskills install akramIOT/mcp-ai-soc-sherComprehensive Text2SQL MCP server with security analysis and multi-interface support
1# MCP AI SOC Sher23A powerful AI-driven Security Operations Center (SOC) Text2SQL framework based MCP Server (Local and Remote) for converting natural language Prompts to SQL queries dynamically, with integrated security threat analysis and monitoring.45## Features67- **Text2SQL Conversion**: Convert natural language queries to optimized SQL8- **Multiple Interfaces**: Support for STDIO, SSE, and REST API9- **Security Threat Analysis**: Built-in SQL query security analysis10- **Multiple Database Support**: Connect to SQLite or Snowflake databases11- **Streaming Responses**: Real-time query processing feedback12- **SOC Monitoring**: Security Operations Center monitoring capabilities1314## Installation1516```bash17pip install mcp-ai-soc-sher18```1920## Quick Start2122```python23# Set your OpenAI API key24import os25os.environ["OPENAI_API_KEY"] = "your-api-key-here"2627# Use as local server28from mcp_ai_soc_sher.local import LocalMCPServer2930server = LocalMCPServer()31server.start()3233# Or run from command line34# mcp-ai-soc --type local --stdio --sse35```3637## Command Line Usage3839```bash40# Run local server with STDIO interface41mcp-ai-soc --type local --stdio4243# Run local server with SSE interface44mcp-ai-soc --type local --sse4546# Run remote server with REST API47mcp-ai-soc --type remote48```4950## Configuration5152Create a `.env` file with your configuration:5354```55OPENAI_API_KEY=your_openai_api_key_here56MCP_DB_URI=sqlite:///your_database.db57MCP_SECURITY_ENABLE_THREAT_ANALYSIS=true58```5960See the [documentation](docs/configuration.md) for all configuration options.6162## Example6364```python65import json66import requests6768# Query the server69response = requests.post(70 "http://localhost:8000/api/sql",71 headers={"Content-Type": "application/json", "X-API-Key": "your-api-key"},72 json={73 "query": "Find all suspicious login attempts in the last 24 hours",74 "optimize": True,75 "execute": True76 }77)7879# Process the response80result = response.json()81print(f"SQL Query: {result['sql']}")82if result['results']:83 print("Results:")84 for row in result['results']:85 print(row)86```8788## Security Features8990- Rule-based and AI-powered SQL query security analysis91- Detection of potential SQL injection attacks92- Sensitive table access monitoring93- Configurable security levels and actions9495## License9697MIT License with Additional Conditions. Copyright (c) 2025 Akram Sheriff.9899See [LICENSE](LICENSE) for details.100101## Contributing102103Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.104
Full transparency — inspect the skill content before installing.