JFrog MCP

JFrog MCP

Read-only MCP server for JFrog Artifactory repository intelligence, enabling listing repositories and paths, fetching metadata, properties, and stats, and performing bounded file searches without mutation.

Category
访问服务器

README

JFrog MCP

Read-only Model Context Protocol server for JFrog Artifactory repository intelligence.

This server is intentionally narrow. It lists repositories, lists explicit repository paths, fetches item metadata, fetches properties and stats, and performs bounded file searches. It does not deploy, delete, move, copy, mutate properties, run raw AQL, or download file content.

Tools

  • jfrog_ping checks URL and token access without returning secrets.
  • jfrog_capabilities describes server limits, security settings, compatibility behavior, and optional live feature probes for a repo/path.
  • jfrog_list_repositories lists repositories with optional type, package_type, and project filters.
  • jfrog_list_path lists one repository path with bounded depth and cursor pagination. If Artifactory rejects the Pro-only storage list mode, it falls back to basic metadata children.
  • jfrog_get_item_info returns metadata for one file or folder.
  • jfrog_get_item_properties returns item properties as a separate storage query mode.
  • jfrog_get_item_stats returns download statistics as a separate storage query mode.
  • jfrog_get_tree returns a bounded file/folder tree using metadata traversal.
  • jfrog_find_files searches files with generic filters and response shaping.
  • jfrog_latest_files searches files and sorts the bounded result set by modified client-side.

The safe search tools intentionally avoid non-portable AQL fields and default server-side sorting, because some Artifactory OSS/CE installations reject those features. Use name_pattern for artifact-specific needs, such as *.jar, *.war, or *.zip, instead of adding artifact-specific tools.

Resources

  • jfrog://repositories lists repositories.
  • jfrog://repo/{repoKey} lists the root path of one repository.
  • jfrog://repo/{repoKey}/path/{path} returns metadata for one repository path. Encode slashes in path as %2F, for example jfrog://repo/libs-release-local/path/com%2Facme.

Configuration

Set credentials through a local .env file, environment variables, or a mounted token file. Do not pass the token as a tool argument.

For local use, copy the template and edit the values:

Copy-Item .env.example .env
notepad .env

Minimal .env with a direct token:

JFROG_URL=https://example.jfrog.io
JFROG_ACCESS_TOKEN=REPLACE_ME

Or use a token file:

New-Item -ItemType Directory -Force .secrets
Set-Content -NoNewline .secrets/jfrog-token "REPLACE_ME"
JFROG_URL=https://example.jfrog.io
JFROG_ACCESS_TOKEN_FILE=.secrets/jfrog-token

JFROG_ACCESS_TOKEN takes priority when both settings are present. Direct tokens are convenient for local agents and private runtime configuration. Token files are still useful for mounted secrets in containers, CI, Kubernetes, and OpenShift.

export JFROG_URL="https://example.jfrog.io"
export JFROG_ACCESS_TOKEN="REPLACE_ME"

Optional settings:

export JFROG_MCP_TRANSPORT="stdio"
export JFROG_REQUEST_TIMEOUT_SECONDS="20"
export JFROG_DEFAULT_PAGE_SIZE="50"
export JFROG_MAX_PAGE_SIZE="200"
export JFROG_MAX_DEPTH="5"
export JFROG_MAX_AQL_LIMIT="500"
export JFROG_CACHE_TTL_SECONDS="60"
export JFROG_VERIFY_SSL="true"
export JFROG_CA_BUNDLE="/etc/ssl/certs/company-ca.pem"
export JFROG_TRUST_ENV="false"
export JFROG_LOG_LEVEL="INFO"

JFROG_URL may be either the JFrog base URL, such as https://example.jfrog.io, or the Artifactory base URL, such as https://example.jfrog.io/artifactory.

Keep JFROG_VERIFY_SSL=true in production. If your Artifactory endpoint uses a private CA, set JFROG_CA_BUNDLE to the mounted PEM bundle instead of disabling verification.

JFROG_TRUST_ENV=false makes the HTTP client ignore proxy-related environment variables. Keep this default for internal Artifactory routes unless your deployment intentionally needs HTTP_PROXY or HTTPS_PROXY.

Run Locally

python -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]"
jfrog-mcp

For Windows PowerShell:

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"
jfrog-mcp

The default transport is stdio. For Streamable HTTP:

JFROG_MCP_TRANSPORT=streamable-http jfrog-mcp

Client Example

For a stdio MCP client configuration:

{
  "mcpServers": {
    "jfrog": {
      "command": "jfrog-mcp",
      "env": {
        "JFROG_URL": "https://example.jfrog.io",
        "JFROG_ACCESS_TOKEN": "REPLACE_ME"
      }
    }
  }
}

For agents that expect an npx-style MCP command, use the Node wrapper.

Uploaded GitHub repo:

{
  "mcpServers": {
    "jfrog": {
      "command": "npx",
      "args": [
        "-y",
        "github:mSaeedS/jfrog-mcp"
      ],
      "env": {
        "JFROG_URL": "https://example.jfrog.io",
        "JFROG_ACCESS_TOKEN": "REPLACE_ME",
        "JFROG_TRUST_ENV": "false"
      }
    }
  }
}

Published npm package:

{
  "mcpServers": {
    "jfrog": {
      "command": "npx",
      "args": [
        "-y",
        "@YOUR_SCOPE/jfrog-mcp@0.1.0"
      ],
      "env": {
        "JFROG_URL": "https://example.jfrog.io",
        "JFROG_ACCESS_TOKEN": "REPLACE_ME",
        "JFROG_TRUST_ENV": "false"
      }
    }
  }
}

The wrapper starts the Python MCP server, sets JFROG_ENV_FILE to the project .env when present, and preserves stdio for MCP protocol traffic. For uploaded npx usage, it bootstraps a small Python venv in the user cache on first run and installs the bundled Python package there. If your environment uses an internal Python package index, pass PIP_INDEX_URL / PIP_EXTRA_INDEX_URL through the MCP env.

If Windows or OneDrive blocks the default npm cache, set a cache outside synced folders before running npx:

$env:npm_config_cache = "$env:TEMP\npm-cache"
npx -y "D:\OneDrive - Systems Limited\Desktop\jfrog-mcp" --version

Docker

docker build -t jfrog-mcp:latest .
docker run --rm -i \
  -e JFROG_URL="https://example.jfrog.io" \
  -e JFROG_ACCESS_TOKEN="REPLACE_ME" \
  jfrog-mcp:latest

For HTTP transport:

docker run --rm -p 8000:8000 \
  -e JFROG_URL="https://example.jfrog.io" \
  -e JFROG_ACCESS_TOKEN="REPLACE_ME" \
  -e JFROG_MCP_TRANSPORT="streamable-http" \
  jfrog-mcp:latest

Production Notes

  • Use a least-privilege read-only JFrog access token. Rotate it regularly and immediately after any accidental exposure.
  • Use JFROG_ACCESS_TOKEN when your agent/runtime can inject secrets securely as environment variables. Use JFROG_ACCESS_TOKEN_FILE when your platform mounts secrets as files.
  • Set page, depth, and AQL limits for your environment with JFROG_MAX_PAGE_SIZE, JFROG_MAX_DEPTH, and JFROG_MAX_AQL_LIMIT.
  • Run jfrog_capabilities(live_probe=true, repo_key="...", path="...") against a representative repo to discover whether that Artifactory instance supports Pro storage listing or server-side AQL sort.
  • Restart the MCP client or server process after changing environment variables or code. Existing stdio MCP sessions keep their original process environment.
  • Treat JFROG_VERIFY_SSL=false as local troubleshooting only. Use JFROG_CA_BUNDLE for private CA deployments.

Tests

pytest

The tests use mocked HTTP transports and do not call a real JFrog instance.

Optional live tests run only when all of these are set:

export JFROG_TEST_URL="https://example.jfrog.io"
export JFROG_TEST_TOKEN="REPLACE_ME"
export JFROG_TEST_REPO="libs-release-local"
pytest tests/test_live_integration.py

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选