Skip to content

MCP Security Playground - Hack with MCP Servers, MCP Clients. Try out different vulnerabilities and abuse LLMs and agents in a UI friendly experimentation lab

License

Notifications You must be signed in to change notification settings

SirAppSec/mcp-security-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcp-security-sandbox

An experimental sandbox and a lab to explore mcp hosts, mcp clients, and mcp servers. Perform attacks agaisnt mcp servers and abuse LLMs

Preview

MCP Aware Chat - retrieval

This repository defines an MCP server(github retrieval), and integrate it into a chat agent playground. image

Burp Suite MCP Server

Use to chain and interact with multiple MCP servers, in this example, we've enabled intercept and performed a revtrieval using the github tool to describe this repository!

image note: install Burps MCP Server first

Quick Start

to start the frontend:

uv install
uv venv
source .venv/bin/activate
# Start he MCP serer
uv run -- src/mcp-security-sandbox/mcp/github/server.py 
streamlit run src/mcp-security-sandbox/frontend/MCP_Chat.py

make sure you install ollama, and set it's url in the ollama client initializations

Roadmap

  • use the environment to setup the ollama api
  • integrate mcp into the chat context(currently it's history aware only)
  • Allow for streamlit pages/navigation
  • unify streamlit server(s) to initiate all of the frontend once
  • add more mcp servers
  • allow for dynamically loading of mcp servers
  • create a malicious server
  • perfrom mcp attacks and poc vulnerabilities

About

MCP Security Playground - Hack with MCP Servers, MCP Clients. Try out different vulnerabilities and abuse LLMs and agents in a UI friendly experimentation lab

Topics

Resources

License

Stars

Watchers

Forks

Languages