mcp-pypi
An MCP server built with FastMCP that provides basic terminal abilities like running commands, running Python, and working with files and folders.
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
- Starts an MCP server over stdio.
- 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
src/mcp_pypi/tools.pydefines the MCP tools.src/mcp_pypi/main.pystarts the MCP server over stdio.test.pystarts the server directly for quick local runs.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.