uv-mcp
Provides access to PyPI package metadata, including version information, distribution details, and security audit data, enabling management of Python dependencies.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@uv-mcpAudit my project dependencies for known vulnerabilities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
uv-mcp
A Model Context Protocol (MCP) server for interacting with Python installations via uv, the fast Python package installer.
Overview
uv-mcp provides LLMs with direct access to inspect and manage Python environments through the uv package manager. This allows AI assistants to help with Python dependency management, environment inspection, and troubleshooting tasks.
Related MCP server: PypReader-MCP
Features
Environment Inspection: Query installed packages and their versions
Environment Comparison: Identify differences between virtual environments
Requirement Management: Parse requirements.txt and pyproject.toml files
Package Information: Retrieve metadata about PyPI packages
Virtual Environment Management: Create and inspect virtual environments
UV Documentation: Browse cached CLI, settings, and resolver documentation
Documentation Search: Search the cached UV documentation from an MCP client
Python Management: Discover, install, pin, upgrade, and remove Python versions
Tool Management: Install, upgrade, list, and uninstall global uv tools
Security Auditing: Audit project dependencies and installed uv tools for vulnerabilities and adverse package statuses
Diagnostics: Diagnose, repair, and self-heal project environments
How It Works
uv-mcp implements the Model Context Protocol to expose Python environment data and package management functionality through standardized resources and tools.
Resources
python:packages://installed- List of all installed packages and versionspython:packages://outdated- List of installed packages with newer versions availablepython:packages://{package_name}/info- Detailed information about a packagepython:requirements://{file_path*}- Parsed requirements and version conflictsuv:docs://{section}- List entries in thecli,settings, orresolversectionsuv:docs://{section}/{command}- Read documentation entry metadatauv:docs://{section}/{command}/{subsection}- Read detailed documentation content
Tools
run(command: str[])- Run a command or scriptinit()- Create a new projectadd(package_name: str, version: Optional[str])- Add dependencies to the projectremove(package_name: str)- Remove dependencies from the projectsync(dry_run: bool)- Install all declared dependencies, uninstall anything not declaredlock()- Update the project's lockfilepip(command: str[])- Run a pip commandcreate_virtualenv(path: str, packages: str[])- Create a virtual environmentcompare_environments(env1: str, env2: str)- Compare packages in two environmentspip_install(package_name: str, version: Optional[str], venv_path: Optional[str])- Install a packagepip_uninstall(package_name: str, venv_path: Optional[str])- Uninstall a packagepip_list(venv_path: Optional[str])- List packages in an optional target environmentupdate_cache(force: bool)- Refresh the UV documentation cachesearch_documentation(query: str)- Search cached UV documentationpython_list()/python_install(version)/python_pin(version)- Manage Python installationspython_find(request)/python_upgrade(version)/python_uninstall(version)- Resolve and update Python versionstool_install(package)/tool_upgrade(name)/tool_list()/tool_uninstall(name)- Manage uv toolsaudit(...)/tool_audit(...)- Audit project dependencies or installed uv tools for vulnerabilitiescache_clean(package)/cache_prune(ci)/cache_dir()/cache_size()- Manage the uv cachediagnose_environment(project_path)/repair_environment(project_path)/self_heal(project_path)- Inspect and repair environmentspip_compile(input_file)/pip_sync(requirements_file)/pip_freeze()- Run pip-compatible workflowsbuild(project_path)/publish(project_path)/bump_version(level)- Build and publish projectsself_version()/self_update(target_version)- Inspect and update uv
Prompts
summarize_docs(section: Optional[str])- Generate a prompt for summarizing UV documentation
Usage
To start the server:
uvx uv-mcpThe server checks for .venv or venv in its working directory. To select an
explicit virtual environment, use the serve command:
uvx uv-mcp serve /path/to/.venvInstall the bundled Agent Skill into a project for agents that discover skills
from .agents/skills:
uvx uv-mcp skill install uvUse --target /path/to/project to select another project directory, or
--force to replace an existing installation.
Configuration can also be provided through environment variables:
UV_MCP_VENV_PATH- Default virtual environment pathUV_MCP_LOG_LEVEL- Logging level, defaultINFOUV_MCP_UV_BINARY- Explicit path to the uv executableUV_MCP_COMMAND_TIMEOUT- Optional uv command timeout in secondsUV_MCP_CACHE_DIR- Documentation cache directory; defaults to the XDG cache directory
uv's optional malware check can be enabled for sync operations with
UV_MALWARE_CHECK=1.
Development
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceProduction-ready MCP server for secure Python code execution with artifact capture, virtual environment support, and LM Studio integration.Last updated10Apache 2.0
- Alicense-qualityCmaintenanceAn MCP server that enables AI models to inspect local Python packages by retrieving PyPI descriptions, file structures, and source code. It allows agents to understand third-party libraries directly from a specified environment for tasks like code analysis and dependency checking.Last updated4MIT
- FlicenseBqualityFmaintenanceAn MCP server that manages Python virtual environments using uv, allowing LLMs to reliably resolve dependencies and update virtual environments.Last updated67
- Alicense-qualityDmaintenanceA security-focused MCP server that enables AI assistants to search PyPI packages, scan for vulnerabilities, audit dependencies, and ensure security across Python projects.Last updated4MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yriveiro/uv-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server