轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥8起我的订单
文档
工具
提交工单页面收录
pypi-query-mcp-server

mekayelanik/pypi-query-mcp-server

mekayelanik

下载次数: 0状态:社区镜像维护者:mekayelanik仓库类型:镜像最近更新:1 个月前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这段话即可:

请先阅读并遵守:https://xuanyuan.cloud/agents.md

未读文档前不要生成 pull 命令或排错方案。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

镜像简介
下载命令
镜像标签列表与下载命令
轩辕镜像,不浪费每一次拉取。
点击查看

PyPI Query MCP Server

https://hub.docker.com/r/mekayelanik/pypi-query-mcp-server https://hub.docker.com/r/mekayelanik/pypi-query-mcp-server https://github.com/MekayelAnik/pypi-query-mcp-server-docker/pkgs/container/pypi-query-mcp-server https://github.com/MekayelAnik/pypi-query-mcp-server-docker/blob/main/LICENSE https://hub.docker.com/r/mekayelanik/pypi-query-mcp-server https://github.com/MekayelAnik/pypi-query-mcp-server-docker/stargazers https://github.com/MekayelAnik/pypi-query-mcp-server-docker/forks https://github.com/MekayelAnik/pypi-query-mcp-server-docker/issues https://github.com/MekayelAnik/pypi-query-mcp-server-docker/commits/main

Multi-Architecture Docker Image for PyPI Package Query, Dependency Analysis & Download Stats


📋 Table of Contents

  • Overview
  • Supported Architectures
  • Available Tags
  • Quick Start
  • Configuration
  • MCP Client Configuration
  • Network Configuration
  • Updating
  • Troubleshooting
  • Additional Resources
  • Support & License
  • Major Changes

😎 Buy Me a Coffee ☕︎

Your support encourages me to keep creating/supporting my open-source projects. If you found value in this project, you can buy me a coffee to keep me inspired.

Overview

PyPI Query MCP Server queries the Python Package Index — package metadata, version lists, dependency trees, Python compatibility checks, download statistics, and trending packages — through the Model Context Protocol. Built on the upstream https://github.com/loonghao/pypi-query-mcp-server (MIT-licensed) and packaged here under GPL-3.0; this image is independently maintained and is not affiliated with the upstream project. The container uses https://github.com/sparfenyuk/mcp-proxy as the stdio<->HTTP/SSE bridge (replacing supergateway in stateful mode by default).

Key Features

✨ Multi-Architecture Support - Native support for x86-64 and ARM64
🚀 Multiple Transport Protocols - StreamableHTTP and SSE via mcp-proxy
🔒 Secure by Design - Alpine-based with minimal *** surface
⚡ High Performance - ZSTD compression for faster deployments
🎯 Production Ready - Stable releases with comprehensive testing
🔧 Easy Configuration - Simple environment variable setup


Supported Architectures

ArchitectureTag PrefixStatus
x86-64amd64-<version>✅ Stable
ARM64arm64v8-<version>✅ Stable

💡 Multi-arch images automatically select the correct architecture for your system.


Available Tags

TagStabilityDescriptionUse Case
stable⭐⭐⭐Most stable releaseRecommended for production
latest⭐⭐⭐Latest stable releaseStay current with stable features
0.6.5⭐⭐⭐Specific versionVersion pinning for consistency
beta⚠️Beta releasesTesting only

System Requirements

  • Docker Engine: 23.0+
  • RAM: Minimum 512MB
  • CPU: Single core sufficient

🔒 CRITICAL: Do NOT expose this container directly to the internet without proper security measures (reverse proxy, SSL/TLS, authentication, firewall rules).


Quick Start

Docker Compose (Recommended)

yaml
services:
  pypi-query-mcp-server:
    image: mekayelanik/pypi-query-mcp-server:stable
    container_name: pypi-query-mcp-server
    restart: unless-stopped
    ports:
      - "8055:8055"
    volumes:
      - pypi-query-mcp-cache:/home/node/.cache   # Persist cache for future embedding support
    environment:
      - PORT=8055
      - INTERNAL_PORT=38056
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Dhaka
      - NODE_ENV=production
      - PROTOCOL=HTTP
      - ENABLE_HTTPS=false
      - HTTP_VERSION_MODE=auto
      # Optional: require Bearer token auth at HAProxy layer
      # - API_KEY=replace-with-strong-secret
    hostname: pypi-query-mcp-server
    domainname: local

volumes:
  pypi-query-mcp-cache:
    driver: local

Deploy:

bash
docker compose up -d
docker compose logs -f pypi-query-mcp-server

Docker CLI

bash
docker volume create pypi-query-mcp-cache
docker run -d \
  --name=pypi-query-mcp-server \
  --restart=unless-stopped \
  -p 8055:8055 \
  -v pypi-query-mcp-cache:/home/node/.cache \
  -e PORT=8055 \
  -e INTERNAL_PORT=38056 \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Dhaka \
  -e NODE_ENV=production \
  -e PROTOCOL=HTTP \
  -e ENABLE_HTTPS=false \
  -e HTTP_VERSION_MODE=auto \
  mekayelanik/pypi-query-mcp-server:stable

Access Endpoints

ProtocolEndpointDescription
SHTTPhttp://host-ip:8055/mcpStreamable HTTP (default; exposed simultaneously)
SSEhttp://host-ip:8055/sseServer-Sent Events (exposed simultaneously)
Healthhttp://host-ip:8055/healthzHealth check (answered by HAProxy, sub-millisecond)

When HTTPS is enabled (ENABLE_HTTPS=true), use TLS endpoints:

ProtocolEndpoint
SHTTPhttps://host-ip:8055/mcp
SSEhttps://host-ip:8055/sse

WebSocket transport was dropped in the migration to mcp-proxy. Setting PROTOCOL=WS will now fail at startup with a clear message. Use SHTTP or SSE instead.

⚠️ Security Warning: The container now defaults to HTTP (ENABLE_HTTPS=false) for easier local setup. Use ENABLE_HTTPS=true for production, public networks, or any untrusted environment.

⏱️ ARM Devices: Allow 30-60 seconds for initialization before accessing endpoints.


Configuration

Environment Variables

VariableDefaultDescription
PORT8055External HAProxy port
INTERNAL_PORT38056Internal mcp-proxy port (loopback)
PUID1000User ID for file permissions
PGID1000Group ID for file permissions
TZAsia/DhakaContainer timezone (TZ database)
NODE_ENVproductionNode.js environment
PROTOCOLSHTTPDefault transport protocol
API_KEY(empty)Enables Bearer token auth (Authorization: Bearer <API_KEY>)
CORS(empty)Comma-separated CORS origins, supports *
ENABLE_HTTPSfalseEnables TLS termination in HAProxy
TLS_CERT_PATH/etc/haproxy/certs/server.crtTLS cert path
TLS_KEY_PATH/etc/haproxy/certs/server.keyTLS private key path
TLS_PEM_PATH/etc/haproxy/certs/server.pemCombined PEM file used by HAProxy
TLS_CNlocalhostCN for auto-generated certificate
TLS_SANDNS:<TLS_CN>SAN for auto-generated certificate
TLS_DAYS365Auto-generated cert validity period
TLS_MIN_VERSIONTLSv1.3Minimum TLS protocol (TLSv1.2 or TLSv1.3)
HTTP_VERSION_MODEautoauto, all, h1, h2, h3, h1+h2
RATE_LIMIT0Max requests per RATE_LIMIT_PERIOD per IP (0 = disabled)
RATE_LIMIT_PERIOD10sSliding window for rate limiting (e.g., 10s, 1m, 1h)
MAX_CONNECTIONS_PER_IP0Max concurrent connections per IP (0 = disabled)
IP_ALLOWLIST(empty)Comma-separated IPs/CIDRs to allow (all others blocked)
IP_BLOCKLIST(empty)Comma-separated IPs/CIDRs to block
DEBUG_MODE(empty)Enables debug hold mode when set truthy

HTTPS and HTTP Version Notes

  • If ENABLE_HTTPS=true and cert files are missing, the container auto-generates a self-signed certificate.
  • If TLS_CERT_PATH and TLS_KEY_PATH exist, they are merged into TLS_PEM_PATH and used directly.
  • HTTP_VERSION_MODE=h3 (or auto) enables HTTP/3 only when HAProxy build includes QUIC; otherwise it safely falls back.

API Key Authentication Notes

  • Set API_KEY to enforce authentication at reverse proxy level.
  • Expected header format: Authorization: Bearer <API_KEY>.
  • Localhost health checks remain accessible for liveness/readiness.

Rate Limiting and IP Access Control

  • Rate limiting: Set RATE_LIMIT=100 to allow 100 requests per RATE_LIMIT_PERIOD (default 10s) per IP. Exceeding the limit returns HTTP 429 with a Retry-After header.
  • Connection limiting: Set MAX_CONNECTIONS_PER_IP=50 to cap concurrent connections per IP. Exceeding returns HTTP 429.
  • IP blocklist: Set IP_BLOCKLIST=192.0.2.0/24,198.51.100.5 to block specific IPs/CIDRs. Blocked IPs receive HTTP 403.
  • IP allowlist: Set IP_ALLOWLIST=10.0.0.0/8,192.168.1.0/24 to allow only listed IPs/CIDRs. All others receive HTTP 403. Localhost is always allowed.
  • All features default to disabled. Combine as needed — blocklist is checked before allowlist.

Memory & Concurrency Tuning

mcp-proxy runs the PyPI Query backend as a single long-lived stdio child and multiplexes all client sessions through it via JSON-RPC ids. This caps the expected memory footprint; the knobs below cap the worst case:

  • MCP_PROXY_STATELESS=false (default) — share one backend child across all sessions. Recommended for almost every deployment. Flip to true only when you genuinely need per-request isolation (and accept the per-request transport-instance cost).
  • PQMS_MAX_MEM_MB=1024 — caps the virtual-memory size of the pypi-query child via prlimit --as. A runaway backend gets OOM-killed by the kernel before it exhausts the host. The recommended starting value is 1 GiB.
  • HAPROXY_FRONTEND_MAXCONN=64 + HAPROXY_SERVER_MAXCONN=16 — bound concurrent connections at the HAProxy layer so a burst cannot saturate the upstream stdio bridge.
  • /healthz is answered directly by HAProxy with a local 200 — Docker's container healthcheck no longer depends on upstream MCP readiness.

User & Group IDs

Find your IDs and set them to avoid permission issues:

bash
id username
# uid=1000(user) gid=1000(group)

Timezone Examples

yaml
- TZ=Asia/Dhaka        # Bangladesh
- TZ=America/New_York  # US Eastern
- TZ=Europe/London     # UK
- TZ=UTC               # Universal Time

MCP Client Configuration

Transport Support

ClientSHTTPSSERecommended
VS Code (Cline/Roo-Cline)✅✅SHTTP
Claude Desktop✅✅SHTTP
Claude CLI✅✅SHTTP
Codex CLI✅✅SHTTP
Codeium (Windsurf)✅✅SHTTP
Cursor✅✅SHTTP

WebSocket transport was dropped in the migration to mcp-proxy.


VS Code (Cline/Roo-Cline)

Configure in .vscode/settings.json:

json
{
  "mcp.servers": {
    "pypi-query-mcp-server": {
      "url": "http://host-ip:8055/mcp",
      "transport": "http"
    }
  }
}

Claude Desktop App/Claude Code

Configuration:

With API_KEY

claude mcp add-json github '{"type":"http","url":"http://localhost:8055/mcp","headers":{"Authorization":"Bearer <YOUR_API_KEY>"}}'

Without API_KEY

claude mcp add-json github '{"type":"http","url":"http://localhost:8055/mcp"}'

Codex CLI

Configure in ~/.codex/config.json:

json
{
  "mcpServers": {
    "pypi-query-mcp-server": {
      "transport": "http",
      "url": "http://host-ip:8055/mcp"
    }
  }
}

Codeium (Windsurf)

Configure in .codeium/mcp_settings.json:

json
{
  "mcpServers": {
    "pypi-query-mcp-server": {
      "transport": "http",
      "url": "http://host-ip:8055/mcp"
    }
  }
}

Cursor

Configure in ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "pypi-query-mcp-server": {
      "transport": "http",
      "url": "http://host-ip:8055/mcp"
    }
  }
}

Testing Configuration

Verify with https://github.com/modelcontextprotocol/inspector:

bash
npm install -g @modelcontextprotocol/inspector
mcp-inspector http://host-ip:8055/mcp

Network Configuration

Comparison

Network ModeComplexityPerformanceUse Case
Bridge⭐ Easy⭐⭐⭐ GoodDefault, isolated
Host⭐⭐ Moderate⭐⭐⭐⭐ ExcellentDirect host access
MACVLAN⭐⭐⭐ Advanced⭐⭐⭐⭐ ExcellentDedicated IP

Bridge Network (Default)

yaml
services:
  pypi-query-mcp-server:
    image: mekayelanik/pypi-query-mcp-server:stable
    ports:
      - "8055:8055"

Benefits: Container isolation, easy setup, works everywhere Access: http://localhost:8055/mcp


Host Network (Linux Only)

yaml
services:
  pypi-query-mcp-server:
    image: mekayelanik/pypi-query-mcp-server:stable
    network_mode: host

Benefits: Maximum performance, no NAT overhead, no port mapping needed ***ations: Linux only, shares host network namespace Access: http://localhost:8055/mcp


MACVLAN Network (Advanced)

yaml
services:
  pypi-query-mcp-server:
    image: mekayelanik/pypi-query-mcp-server:stable
    mac_address: "AB:BC:CD:DE:EF:01"
    networks:
      macvlan-net:
        ipv4_address: 192.168.1.100

networks:
  macvlan-net:
    driver: macvlan
    driver_opts:
      parent: eth0
    ipam:
      config:
        - subnet: 192.168.1.0/24
          gateway: 192.168.1.1

Benefits: Dedicated IP, direct LAN access ***ations: Linux only, requires additional setup Access: http://192.168.1.100:8055/mcp


Updating

Docker Compose

bash
docker compose pull
docker compose up -d
docker image prune -f

Docker CLI

bash
docker pull mekayelanik/pypi-query-mcp-server:stable
docker stop pypi-query-mcp-server && docker rm pypi-query-mcp-server
# Run your original docker run command
docker image prune -f

One-Time Update with Watchtower

bash
docker run --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  containrrr/watchtower \
  --run-once \
  pypi-query-mcp-server

Troubleshooting

Pre-Flight Checklist

  • ✅ Docker Engine 23.0+
  • ✅ Port 8055 available
  • ✅ Sufficient startup time (ARM devices)
  • ✅ Latest stable image
  • ✅ Correct configuration

Common Issues

Container Won't Start

bash
# Check Docker version
docker --version

# Verify port availability
sudo netstat -tulpn | grep 8055

# Check logs
docker logs pypi-query-mcp-server

Permission Errors

bash
# Get your IDs
id $USER

# Update configuration with correct PUID/PGID
# Fix volume permissions if needed
sudo chown -R 1000:1000 /path/to/volume

Client Cannot Connect

bash
# Test connectivity
curl http://localhost:8055/mcp
curl http://host-ip:8055/mcp
curl -k https://localhost:8055/mcp
curl -k https://host-ip:8055/mcp

# Check firewall
sudo ufw status

# Verify container
docker inspect pypi-query-mcp-server | grep IPAddress

Slow ARM Performance

  • Wait 30-60 seconds after start
  • Monitor: docker logs -f pypi-query-mcp-server
  • Check resources: docker stats pypi-query-mcp-server
  • Use faster storage (SSD vs SD card)

Debug Information

When reporting issues, include:

bash
# System info
docker --version && uname -a

# Container logs
docker logs pypi-query-mcp-server --tail 200 > logs.txt

# Container config
docker inspect pypi-query-mcp-server > inspect.json

Additional Resources

Documentation

  • 📚 https://github.com/loonghao/pypi-query-mcp-server
  • 📦 https://pypi.org/project/pypi-query-mcp-server/
  • 🌉 https://github.com/sparfenyuk/mcp-proxy
  • 🔧 https://github.com/modelcontextprotocol/inspector

Docker Resources

  • 🐳 https://docs.docker.com/compose/production/
  • 🌐 https://docs.docker.com/network/
  • 🛡️ https://docs.docker.com/engine/security/

Monitoring

  • 📊 https://crazymax.dev/diun/
  • ⚡ https://containrrr.dev/watchtower/

😎 Buy Me a Coffee ☕︎

Your support encourages me to keep creating/supporting my open-source projects. If you found value in this project, you can buy me a coffee to keep me inspired.

Support & License

Getting Help

Docker Image Issues:

  • GitHub: https://github.com/MekayelAnik/pypi-query-mcp-server-docker/issues

PyPI Query MCP Server Issues:

  • GitHub: https://github.com/loonghao/pypi-query-mcp-server/issues
  • Website: https://github.com/loonghao/pypi-query-mcp-server/

Contributing

We welcome contributions:

  1. Report bugs via GitHub Issues
  2. Suggest features
  3. Improve documentation
  4. Test beta releases

License

GPL License. See https://raw.githubusercontent.com/MekayelAnik/pypi-query-mcp-server-docker/refs/heads/main/LICENSE for details.

PyPI Query MCP Server server has its own license - see https://github.com/loonghao/pypi-query-mcp-server.


Major Changes

  • Initial Release: Full CI/CD pipeline with HAProxy, HTTPS/TLS, QUIC/HTTP3, API key auth

⬆ Back to Top

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 pypi-query-mcp-server 镜像标签

docker pull docker.xuanyuan.run/mekayelanik/pypi-query-mcp-server:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull mekayelanik/pypi-query-mcp-server:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

爱快 4.0 · iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

专属域名用法

专属域名 · 开启停用 · 多仓库

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

docker.sock / daemon

账号

失败是否计费

manifest · blob · 计费

申请开票(企业 / 个人)

开票 · 发票 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
mekayelanik/pypi-query-mcp-server
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
官方技术交流群:|问题咨询请:提交工单
服务号:轩辕镜像|公众号:源码跳动|小程序:轩辕镜像|官方技术交流群:|问题咨询请:提交工单
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥8/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 pypi-query-mcp-server 镜像推荐

linuxserver/code-server logo

linuxserver/code-server

LinuxServer.io 社区镜像
linuxserver/code-server是VS Code服务器版Docker镜像,可在浏览器中运行完整VS Code开发环境,无需本地安装即可跨设备访问。支持全部VS Code扩展、代码同步与终端功能,适配远程开发、团队协作或低配置设备场景。镜像经linuxserver优化,兼容ARM/AMD架构,内置持久化存储与安全配置,开箱即用,轻松打造云端IDE,提升开发灵活性与效率。
741 次收藏5000万+ 次下载
4 小时前更新
linuxserver/openssh-server logo

linuxserver/openssh-server

LinuxServer.io 社区镜像
提供OpenSSH服务器服务,支持远程登录与服务器管理,具备易于部署、配置灵活的特点,适用于各类需要安全远程访问的场景。
146 次收藏1000万+ 次下载
3 天前更新
airbyte/source-pypi logo

airbyte/source-pypi

airbyte
暂无描述
1万+ 次下载
2 天前更新
grafana/tempo-query logo

grafana/tempo-query

Grafana 可观测性平台
暂无描述
2 次收藏500万+ 次下载
7 分钟前更新
mailserver/docker-mailserver logo

mailserver/docker-mailserver

mailserver
一个全栈且简单易用的邮件服务器,支持SMTP、IMAP协议,集成LDAP、反垃圾邮件及反病毒等功能。
267 次收藏1000万+ 次下载
3 天前更新
demisto/pyping logo

demisto/pyping

demisto
暂无描述
1万+ 次下载
9 年前更新

查看更多 pypi-query-mcp-server 相关镜像