MCP Server UV
About
A Model Context Protocol server for uv package manager
Details
- Author
- hackcpp
- Downloads
- 141
- Categories
- Other
Jump to
- Install, uninstall, and upgrade Python packages
- List installed packages and view dependency trees
- Add and remove project dependencies
- Compile and sync requirements with hashes
- Initialize new Python projects and manage lockfiles
- Build and publish distribution archives
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Server UVCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install with pip install mcp-server-uv and ensure dependencies (Python ≥3.11, UV ≥0.1.10, mcp-python ≥0.1.0) are met. The server exposes tools for package and project management, invoked through MCP-compatible clients.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp server uv": {
"mcp-server-uv": {
"command": "uv",
"args": [
"pip",
"install",
"-e",
".[test]"
]
}
}
}
}
McpServers
{
"mcp-server-uv": {
"command": "uv",
"args": [
"pip",
"install",
"-e",
".[test]"
]
}
}
MCP Server UV
A Model Context Protocol (MCP) server implementation for the UV package manager. This server provides MCP-compatible interfaces for managing Python packages and virtual environments using UV.Features
- Package Management - Install, uninstall, and upgrade Python packages - List installed packages - Add and remove project dependencies - Compile and sync requirements - View dependency trees - Project Management - Initialize new Python projects - Create and update lockfiles - Build and publish packages - Run commands in project environmentInstallation
``bash
pip install mcp-server-uv
`
Requirements
- Python >= 3.11
- UV >= 0.1.10
- mcp-python >= 0.1.0
Usage
The server can be used as a Model Context Protocol server in compatible environments. It provides the following tools:
Package Management Tools
- uv_pip_list: List installed packages
- uv_pip_install: Install Python packages
- uv_pip_uninstall: Remove packages from virtual environment
- uv_pip_upgrade: Upgrade Python packages
- uv_pip_compile: Generate requirements.txt with hashes
- uv_pip_sync: Sync virtual environment with requirements.txt
Project Management Tools
- uv_init: Initialize a new Python project
- uv_add: Add project dependencies
- uv_remove: Remove project dependencies
- uv_sync: Sync project dependencies
- uv_lock: Update lockfile
- uv_run: Run commands in project environment
- uv_tree: View dependency tree
- uv_build: Build distribution archives
- uv_publish: Publish to package index
Development
Setup Development Environment
1. Clone the repository
2. Install development dependencies:
`bash
uv pip install -e ".[test]"
`
Running Tests
`bash
pytest
`
Test Coverage
The project uses pytest-cov for coverage reporting. Run tests with coverage:
`bash
pytest --cov=mcp_server_uv --cov-report=term-missing
``
License
This project is open source and available under the MIT License.Author
- Liu Heng (liuheng@bonree.com)Contributing
Contributions are welcome! Please feel free to submit a Pull Request.Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



