Skip to content

PremLabs-Security/MCPSentinel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCPSentinel

Python 3.10+ License MIT Security Tool CI/CD

MCPSentinel is a specialized security reconnaissance tool designed to detect exposed and unauthenticated Model Context Protocol (MCP) endpoints, Ollama servers, and common LLM proxies.

🛡️ Features

  • MCP Detection: Scans for common MCP endpoints and validates protocol responses.
  • Ollama Scanner: Identifies exposed Ollama instances and lists available models.
  • LLM Proxy Identification: Detects LiteLLM, vLLM, and other OpenAI-compatible proxies.
  • Asynchronous Scanning: High-performance scanning using aiohttp and asyncio.
  • Flexible Reporting: Terminal-based tables and JSON export support.

🚀 Installation

git clone https://github.com/PremLabs-Security/MCPSentinel.git
cd MCPSentinel
pip install -e .

📖 Usage

CLI Usage

Scan a single target:

mcpsentinel --target http://localhost:11434

Scan multiple targets from a file:

mcpsentinel --file targets.txt --output results.json

Python API

import asyncio
from mcpsentinel.scanner import Scanner

async def run_scan():
    scanner = Scanner()
    results = await scanner.scan_target("http://localhost:11434")
    print(results)

asyncio.run(run_scan())

⚠️ Ethical Use Disclaimer

This tool is intended for authorized security testing and research purposes only. Unauthorized scanning of systems you do not own or have explicit permission to test may be illegal. The authors are not responsible for any misuse of this tool.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Developed by Pramod Jogdand | PremLabs-Security

About

A tool to detect exposed/unauthenticated MCP endpoints and Ollama servers.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages