-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
dev-mondoshawan edited this page Apr 15, 2026
·
2 revisions
- Python 3.11+
- Node.js 18+
- PostgreSQL 15+ (or SQLite for development)
git clone https://github.com/RunTimeAdmin/MCPShield.git
cd MCPShieldcd backend
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reloadBackend runs on http://localhost:8000
cd frontend
npm install
npm run devFrontend runs on http://localhost:3000
cd agent
pip install -e .
mcpshield --version# Generate JWT secret (required - backend will not start without it)
# Bash / macOS / Linux:
export JWT_SECRET=$(python3 -c "import secrets; print(secrets.token_hex(32))")
# PowerShell (Windows):
# $env:JWT_SECRET = python -c "import secrets; print(secrets.token_hex(32))"docker-compose up -dThis starts:
- PostgreSQL database on port 5432
- FastAPI backend on port 8000
- Next.js frontend on port 3000
| Variable | Default | Description |
|---|---|---|
DATABASE_URL |
sqlite:///./mcpshield.db |
Database connection string |
JWT_SECRET |
Required - generate with python -c "import secrets; print(secrets.token_hex(32))"
|
JWT signing key |
ACCESS_TOKEN_EXPIRE_MINUTES |
30 |
JWT expiration |
ALLOWED_ORIGINS |
http://localhost:3000 |
CORS origins |
| Variable | Default | Description |
|---|---|---|
NEXT_PUBLIC_API_URL |
http://localhost:8000 |
Backend API URL |
- Open http://localhost:3000
- Register a new account
- Create an agent and copy the API key
- Configure the agent:
mcpshield configure --api-key YOUR_KEY - Run a scan:
mcpshield scan
Getting Started
User Guide
Technical
Development