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.
The quickest way to install the JFrog MCP server is through Smithery:
npx -y @smithery/cli install @jfrog/mcp-jfrog --client claude
Clone and build the repository:
git clone [email protected]:jfrog/mcp-jfrog.git
cd mcp-jfrog
npm i && npm run build
Build the Docker image:
git clone [email protected]:jfrog/mcp-jfrog.git
cd mcp-jfrog
docker build -t mcp/jfrog -f Dockerfile .
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)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:
Add this configuration to your claude_desktop_config.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"
}
}
}
}
{
"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"
}
}
}
}
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"
}
}
}
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"
}
}
}
}
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.
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": {
"jfrog": {
"command": "npm",
"args": [
"exec",
"-y",
"github:jfrog/mcp-jfrog"
],
"env": {
"JFROG_ACCESS_TOKEN": "<YOUR_TOKEN>",
"JFROG_URL": "https://your-instance.jfrog.io"
}
}
}
}
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": {
"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