Skip to content

Connecting Clients

Saeed Yari edited this page Dec 1, 2026 · 1 revision

Connecting Clients

The server works with any MCP client that can start a local command over stdio. Ready-made configs are in examples/. If a config file already lists other servers, add the "asvs" entry next to them instead of replacing the file.

Claude Desktop

Config file:

OS Location
macOS ~/Library/Application Support/Claude/claude_desktop_config.json
Windows %APPDATA%\Claude\claude_desktop_config.json
Linux ~/.config/Claude/claude_desktop_config.json

You can also open it from Settings > Developer > Edit Config.

{
  "mcpServers": {
    "asvs": {
      "command": "uvx",
      "args": ["mcp-server-asvs-security-assistant"]
    }
  }
}

Quit Claude Desktop completely and reopen it. asvs should appear with 7 tools.

Cursor

Use ~/.cursor/mcp.json for all projects, or .cursor/mcp.json inside one project. The content is the same as for Claude Desktop. Then open Cursor Settings, find the MCP section, check that asvs is enabled with 7 tools, and use the chat in Agent mode.

VS Code

Add the server to .vscode/mcp.json in a project, or run MCP: Open User Configuration from the Command Palette to use it in every project:

{
  "servers": {
    "asvs": {
      "type": "stdio",
      "command": "uvx",
      "args": ["mcp-server-asvs-security-assistant"]
    }
  }
}

Claude Code

claude mcp add asvs -- uvx mcp-server-asvs-security-assistant

To make it available in every project, add --scope user: claude mcp add --scope user asvs -- uvx mcp-server-asvs-security-assistant.

Docker

Use examples/docker_mcp.json and replace the placeholder with the project you want audit_directory to scan, or drop the -v argument if you do not need it.

With the PCI DSS compliance assistant

Both servers can run side by side in one client; see Working with PCI DSS.

Tips

  • "Server failed to start" or "uvx: command not found": desktop apps often do not see your shell's PATH. Use the full path to uvx as command (which uvx on macOS/Linux, where uvx on Windows).

  • You do not need to name the tools. Ask normally, such as "Review this login handler for security issues" or "What does ASVS require for session timeouts?". If an assistant answers from memory instead of using the tools, add this once as a standing instruction (Cursor: Settings > Rules > User Rules; Claude Desktop: profile preferences or a Project's instructions):

    For application security questions, secure design and code reviews, use the asvs MCP tools and cite the ASVS requirement IDs they return.

  • Prompts: asvs_code_review_prompt and unified_compliance_review_prompt appear in your client's prompt or slash-command list.

  • Approvals: clients usually ask before each tool call. All tools are read-only, so you can allow them permanently if your client offers that.

Testing without a chat app

The MCP Inspector lets you call the tools by hand:

npx @modelcontextprotocol/inspector uvx mcp-server-asvs-security-assistant                              # web UI
npx @modelcontextprotocol/inspector --cli uvx mcp-server-asvs-security-assistant --method tools/list    # CLI

Clone this wiki locally