Skip to main content

MCP-REPL

A lightweight REPL (Read-Eval-Print Loop) for interacting with various services through MCP (Model Context Protocol).

PyPI version Databases Tests Infrastructure Tests

Overview

mcp-repl is designed for efficient development, debugging, and testing of MCP servers. It provides an intuitive command-line interface that's simpler than using the Cloud Desktop app, allowing developers to quickly:

  • Send queries to MCP servers
  • View detailed tool execution
  • Automatically save chat history
  • Test multiple MCP services simultaneously

Installation

Install via pip or uv:

uv add mcp-repl

Usage

Start the REPL:

uv run mcp-repl --config path/to/config.json

Examples

🔥 Check out our real-world examples to see mcp-repl in action! 🔥

  • Databases - Database administrators: See how to query, monitor, and manage your databases with natural language
  • Infrastructure - DevOps engineers: Explore examples for managing cloud resources, monitoring systems, and automating infrastructure tasks

Each example includes sample configurations and common usage patterns to help you get started quickly.

Optional Flags

  • --auto-approve-tools: Automatically approve all tool executions
  • --always-show-full-output: Always display complete tool outputs
  • --chat-history-dir PATH: Directory to save chat history (default: ./chat_history)

Development Installation

Clone and install in editable mode:

git clone https://github.com/yourusername/mcp-repl.git
cd mcp-repl
uv venv

Testing

Comprehensive integration tests are included to verify functionality:

Run all tests:

uv run pytest

Metadata

Release files for mcp-repl 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-repl 0.1.3
File Size Uploaded
mcp_repl-0.1.3.tar.gz 80.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-repl 0.1.3
File Interpreter ABI Platform
mcp_repl-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 95.1 kB

Release files / mcp_repl-0.1.3.tar.gz

Download URL mcp_repl-0.1.3.tar.gz
Size 80.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5c983025bfb1b608218a98b284c971eaba7232bbbc36516c9f4a0b69df941846
BLAKE2b-256 checksum
How to use checksums
def7f266c2e9d1c334795beb106e4b2f032db6a350424e726db7468e6a6108d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Release files / mcp_repl-0.1.3-py3-none-any.whl

Download URL mcp_repl-0.1.3-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9eb6771eb3a32990fd8671a1c30ca6906cec95cb7684de5c0a8266903a1189a8
BLAKE2b-256 checksum
How to use checksums
8b733ade998838a0dc1cd5b150c25b0c8339cf238099dac9486e72f3febfe58d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page