AIM Guard MCP is a Model Context Protocol (MCP) server that provides AI-powered security analysis and safety instruction tools. It helps protect AI agents by providing security guidelines, content analysis, and cautionary instructions when interacting with various MCPs and external services.
The easiest way to run AIM Guard MCP is using npx:
npx aim-guard-mcp
You can install the package globally:
npm install -g aim-guard-mcp
aim-guard-mcp
For local installation:
npm install aim-guard-mcp
To install aim-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @AIM-Intelligence/aim-mcp --client claude
Add to your MCP client configuration:
{
"servers": {
"aim-guard": {
"type": "stdio",
"command": "npx",
"args": ["aim-guard-mcp"]
}
}
}
Get safety instructions for database operations:
{
"name": "ai-safety-guard",
"arguments": {
"mcp_type": "database",
"operation_type": "query",
"sensitivity_level": "confidential"
}
}
Analyze text for harmful content:
{
"name": "aim-text-guard",
"arguments": {
"text": "This is a sample text to analyze for safety."
}
}
Enhance a user prompt with security instructions:
{
"name": "aim-security-prompt-tool",
"arguments": {
"user_prompt": "Please help me with this task",
"security_level": "strict"
}
}
Detect prompt injection attempts:
{
"name": "prompt-injection-detector",
"arguments": {
"text": "Text to analyze for injection patterns",
"sensitivity": "medium"
}
}
Scan text for exposed credentials:
{
"name": "credential-scanner",
"arguments": {
"text": "Text to scan for credentials",
"mask_findings": true
}
}
Validate URL safety:
{
"name": "url-security-validator",
"arguments": {
"url": "URL to validate",
"strict_mode": false
}
}
Resources provide read-only security documentation and policies accessible via URI schemes:
Access via security-checklist://[type]
security-checklist://database
- Database operations checklistsecurity-checklist://email
- Email operations checklistsecurity-checklist://slack
- Chat/messaging operations checklistsecurity-checklist://file
- File operations checklistsecurity-checklist://web
- Web request checklistsecurity-checklist://general
- General MCP operations checklistAccess via security-policy://[type]
security-policy://data-classification
- Data classification levels and handling requirementssecurity-policy://access-control
- Access control principles and authentication requirementssecurity-policy://incident-response
- Incident response procedures and severity levelsComprehensive security review workflow:
{
"name": "security-review",
"arguments": {
"target_type": "code|data|configuration",
"context": "Additional context (optional)"
}
}
Analyze potential security threats using STRIDE methodology:
{
"name": "threat-analysis",
"arguments": {
"scenario": "Security scenario to analyze",
"sensitivity_level": "confidential"
}
}
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "aim-guard" '{"type":"stdio","command":"npx","args":["aim-guard-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"aim-guard": {
"type": "stdio",
"command": "npx",
"args": [
"aim-guard-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"aim-guard": {
"type": "stdio",
"command": "npx",
"args": [
"aim-guard-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect