Cover image
Try Now
2025-03-26

MCP服务器用于python环境的内省

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

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.

Features

  • Environment Inspection: Query installed packages and their versions
  • Dependency Resolution: Check compatibility between packages
  • Environment Comparison: Identify differences between local and cloud/production environments
  • Requirement Management: Parse and validate requirements files
  • Package Information: Retrieve metadata about PyPI packages
  • Virtual Environment Management: Create and manage virtual 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 versions
  • python:packages://outdated - List of installed packages with newer versions available
  • python:packages://{package_name}/latest - Latest versions available for a package
  • python:packages://{package_name}/dependencies - List of dependencies for a specific package
  • python:requirements://{file_path} - Parsed content of requirements files

Tools

  • run(command: str[]) - Run a command or script
  • init() - Create a new project
  • add(package_name: str, version: Optional[str]) - Add dependencies to the project
  • remove(package_name: str) - Remove dependencies from the project
  • sync(dry_run: bool) - Install all declared dependencies, uninstall anything not declared
  • lock() - Update the project's lockfile
  • pip(command: str[]) - Run a pip command
  • pip_install(package_name: str, version: Optional[str]) - Install a package using pip
  • pip_uninstall(package_name: str) - Uninstall a package using pip
  • pip_list() - List all installed packages using pip

Usage

To start the server:

uvx uv-mcp

Development

This project is built with the MCP Python SDK and uv.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    2 (1)
    Avatar
    user_hWHttwCl
    2025-04-16

    Demo03_mcp Server by zhangqiang1003 is an exceptional tool for server management. Its intuitive interface and robust features make it a reliable choice for anyone in need of efficient server operation. I highly recommend it for both beginners and experienced developers. Explore more at https://mcp.so/server/demo03_mcp-server/zhangqiang1003!