mcp-pypi

mcp-pypi

An MCP server built with FastMCP that provides basic terminal abilities like running commands, running Python, and working with files and folders.

Category
Visit Server

README

mcp-pypi

What this project is

This project is an MCP server built with FastMCP. It exposes tools that give an MCP client or agent basic terminal abilities, such as running commands, running Python, and working with files and folders. The server uses the MCP stdio transport, so it communicates over standard input and output and is meant to be started by an MCP client.

What it does

  1. Starts an MCP server over stdio.
  2. Registers a set of tools that act on the local machine.

MCP tools

The server provides these tools:

Tool Purpose Notes
bash(command: str) Run a shell command. Uses the system shell. Returns stderr on error. On success, it does not return a value in the current implementation.
python_code(code: str) Run Python code. Executes python -c <code>. Returns stdout or error text.
python_file(file: str) Run a Python file. Executes python <file>. Returns stdout or error text.
glob(pattern: str) Find files by pattern. Returns a list of matching paths.
grep(pattern: str, file: str) Search for a pattern in a file. Uses findstr on Windows. Prints matches and does not return a value in the current implementation.
read_file(file: str) Read a file. Returns file content or error text.
write_file(file: str, content: str) Write a file. Overwrites if the file exists and returns a success message or error text.
create_folder(folder: str) Create a folder. Returns a message if it was created or already exists.
delete_folder(folder: str) Delete a folder. Recursively removes the folder if it exists and returns a message.

Install

Python 3.10 or later is required.

From the repository root:

python -m pip install .

Run as an MCP server

Start the server with the stdio transport:

mcp_pypi

Or:

python -m mcp_pypi.main

Then configure your MCP client to launch it with stdio. Example:

{
  "mcpServers": {
    "mcp-pypi": {
      "command": "mcp_pypi",
      "args": []
    }
  }
}

Project layout

  1. src/mcp_pypi/tools.py defines the MCP tools.
  2. src/mcp_pypi/main.py starts the MCP server over stdio.
  3. test.py starts the server directly for quick local runs.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured