AIM Guard MCP server

Provides security middleware that guards MCP implementations against unauthorized access, data leakage, and malicious interactions through threat detection and protection validation.
Back to servers
Setup instructions
Provider
AIM-Intelligence
Release date
Aug 20, 2025
Stats
10 stars

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.

Features

Tools

  • AI Safety Guard: Contextual security instructions for MCP interactions
  • Text Guard Analysis: Harmful content detection using AIM Intelligence API
  • Security Prompt Enhancement: Add security layers to user prompts
  • Prompt Injection Detector: OWASP LLM01:2025 compliant injection detection
  • Credential Scanner: Scan for exposed API keys, passwords, tokens, and secrets
  • URL Security Validator: Validate URLs for phishing, malware, and HTTPS enforcement

Resources

  • Security Checklists: MCP-specific security checklists for database, email, slack, file, web, and general operations
  • Security Policies: Comprehensive policies including data classification, access control, and incident response

Prompts

  • Security Review: Multi-step security review workflow
  • Threat Analysis: STRIDE-based threat modeling and risk assessment

Installation

Using NPX (Recommended)

The easiest way to run AIM Guard MCP is using npx:

npx aim-guard-mcp

Global Installation

You can install the package globally:

npm install -g aim-guard-mcp
aim-guard-mcp

Local Installation

For local installation:

npm install aim-guard-mcp

Installing via Smithery

To install aim-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @AIM-Intelligence/aim-mcp --client claude

Usage

As MCP Server

Add to your MCP client configuration:

{
  "servers": {
    "aim-guard": {
      "type": "stdio",
      "command": "npx",
      "args": ["aim-guard-mcp"]
    }
  }
}

Using the Tools

AI Safety Guard

Get safety instructions for database operations:

{
  "name": "ai-safety-guard",
  "arguments": {
    "mcp_type": "database",
    "operation_type": "query",
    "sensitivity_level": "confidential"
  }
}

Text Guard Analysis

Analyze text for harmful content:

{
  "name": "aim-text-guard",
  "arguments": {
    "text": "This is a sample text to analyze for safety."
  }
}

Security Prompt Enhancement

Enhance a user prompt with security instructions:

{
  "name": "aim-security-prompt-tool",
  "arguments": {
    "user_prompt": "Please help me with this task",
    "security_level": "strict"
  }
}

Prompt Injection Detector

Detect prompt injection attempts:

{
  "name": "prompt-injection-detector",
  "arguments": {
    "text": "Text to analyze for injection patterns",
    "sensitivity": "medium"
  }
}

Credential Scanner

Scan text for exposed credentials:

{
  "name": "credential-scanner",
  "arguments": {
    "text": "Text to scan for credentials",
    "mask_findings": true
  }
}

URL Security Validator

Validate URL safety:

{
  "name": "url-security-validator",
  "arguments": {
    "url": "URL to validate",
    "strict_mode": false
  }
}

Using Resources

Resources provide read-only security documentation and policies accessible via URI schemes:

Security Checklists

Access via security-checklist://[type]

  • security-checklist://database - Database operations checklist
  • security-checklist://email - Email operations checklist
  • security-checklist://slack - Chat/messaging operations checklist
  • security-checklist://file - File operations checklist
  • security-checklist://web - Web request checklist
  • security-checklist://general - General MCP operations checklist

Security Policies

Access via security-policy://[type]

  • security-policy://data-classification - Data classification levels and handling requirements
  • security-policy://access-control - Access control principles and authentication requirements
  • security-policy://incident-response - Incident response procedures and severity levels

Using Prompts

Security Review

Comprehensive security review workflow:

{
  "name": "security-review",
  "arguments": {
    "target_type": "code|data|configuration",
    "context": "Additional context (optional)"
  }
}

Threat Analysis

Analyze potential security threats using STRIDE methodology:

{
  "name": "threat-analysis",
  "arguments": {
    "scenario": "Security scenario to analyze",
    "sensitivity_level": "confidential"
  }
}

Security Features

AI Agent Protection

  • Contextual guidelines for different MCP types
  • Specific precautions for read/write/execute operations
  • Protocols based on data classification levels

Content Analysis

  • Real-time threat detection for harmful patterns
  • OWASP LLM01:2025 compliant pattern matching
  • Scan for 50+ types of exposed secrets
  • Advanced AI-driven content safety assessment

URL Security

  • Identify suspicious domains and homograph attacks
  • Validate secure protocol usage
  • Check against known threat indicators

How to install this MCP server

For Claude Code

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.

For Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.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

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later