JFrog MCP server

Bridges to the JFrog Platform, enabling interaction with Artifactory repositories, builds, security scanning, and release management for streamlined DevOps workflows.
Back to servers
Setup instructions
Provider
JFrog
Release date
Apr 01, 2025
Language
TypeScript
Stats
101 stars

The JFrog MCP Server provides a Model Context Protocol interface to the JFrog Platform, allowing AI assistants to interact with JFrog services for repository management, build tracking, artifact search, and more through natural language.

Installation

Prerequisites

  • Node.js v18 or higher
  • Docker (if using Docker deployment)
  • A valid JFrog platform instance
  • JFrog access token with appropriate permissions

Using Smithery

The quickest way to install the JFrog MCP server is through Smithery:

npx -y @smithery/cli install @jfrog/mcp-jfrog --client claude

Manual Installation

Using npm

Clone and build the repository:

git clone [email protected]:jfrog/mcp-jfrog.git
cd mcp-jfrog
npm i && npm run build

Using Docker

Build the Docker image:

git clone [email protected]:jfrog/mcp-jfrog.git
cd mcp-jfrog
docker build -t mcp/jfrog -f Dockerfile .

Configuration

Environment Variables

The following environment variables are required:

  • JFROG_ACCESS_TOKEN: Your JFrog access token (required)
  • JFROG_URL: Base URL for your JFrog platform (required)

Optional environment variables:

  • TRANSPORT: Transport mode, set to 'sse' for SSE transport (default: stdio)
  • PORT: Port number for SSE transport (default: 8080)
  • CORS_ORIGIN: CORS origin allowed for SSE connections (default: '*')
  • LOG_LEVEL: Logging level: DEBUG, INFO, WARN, ERROR (default: INFO)
  • MAX_RECONNECT_ATTEMPTS: Maximum reconnection attempts for SSE server (default: 5)
  • RECONNECT_DELAY_MS: Base delay between reconnection attempts in ms (default: 2000)

JFrog Token

To use this MCP server, you need to create a JFrog Access Token or use an Identity token with appropriate permissions. Refer to the JFrog documentation for:

Usage

Integrating with Claude Desktop

Add this configuration to your claude_desktop_config.json:

Using npm

{
  "mcpServers": {
    "MCP-JFrog": { 
      "command": "npm",
      "args": [
        "exec",
        "-y",
        "github:jfrog/mcp-jfrog"
      ],
      "env": {
        "JFROG_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN",
        "JFROG_URL": "https://your-instance.jfrog.io"
      }
    }
  }
}

Using Docker

{
  "mcpServers": { 
    "jfrog": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "JFROG_ACCESS_TOKEN",
        "-e",
        "JFROG_URL",
        "mcp/jfrog"
      ],
      "env": {
        "JFROG_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN",
        "JFROG_URL": "https://your-instance.jfrog.io"
      }
    }
  }
}

Using SSE Transport Mode

For web interfaces like Cursor's webview, use SSE transport mode:

{
  "mcpServers": { 
    "jfrog-sse": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-p",
        "8080:8080",
        "-e",
        "TRANSPORT=sse",
        "-e",
        "PORT=8080",
        "-e",
        "CORS_ORIGIN=*",
        "-e",
        "JFROG_ACCESS_TOKEN",
        "-e",
        "JFROG_URL",
        "mcp/jfrog"
      ],
      "env": {
        "JFROG_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN",
        "JFROG_URL": "https://your-instance.jfrog.io"
      },
      "serverUrl": "http://localhost:8080/sse"
    }
  }
}

Integrating with Cursor

Add this configuration to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "MCP-JFrog": { 
      "command": "npm",
      "args": [
        "exec",
        "-y",
        "github:jfrog/mcp-jfrog"
      ],
      "env": {
        "JFROG_ACCESS_TOKEN": "YOUR_ACCESS_TOKEN",
        "JFROG_URL": "https://your-instance.jfrog.io"
      }
    }
  }
}

Available Features

Repository Management

  • Create and manage local, remote, and virtual repositories
  • Set folder properties
  • Execute AQL queries for artifact search

Build Management

  • List all builds in the JFrog platform
  • Get details for specific builds

Runtime Management

  • View runtime clusters
  • List running container images

Access Control

  • List environments and projects
  • Create new projects
  • View project details

Catalog and Curation

  • Get package information and versions
  • Check package vulnerabilities
  • Verify package curation status

Xray

  • Get artifact scan summaries by severity

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 "jfrog" '{"command":"npm","args":["exec","-y","github:jfrog/mcp-jfrog"],"env":{"JFROG_ACCESS_TOKEN":"<YOUR_TOKEN>","JFROG_URL":"https://your-instance.jfrog.io"}}'

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": {
        "jfrog": {
            "command": "npm",
            "args": [
                "exec",
                "-y",
                "github:jfrog/mcp-jfrog"
            ],
            "env": {
                "JFROG_ACCESS_TOKEN": "<YOUR_TOKEN>",
                "JFROG_URL": "https://your-instance.jfrog.io"
            }
        }
    }
}

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": {
        "jfrog": {
            "command": "npm",
            "args": [
                "exec",
                "-y",
                "github:jfrog/mcp-jfrog"
            ],
            "env": {
                "JFROG_ACCESS_TOKEN": "<YOUR_TOKEN>",
                "JFROG_URL": "https://your-instance.jfrog.io"
            }
        }
    }
}

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