A standalone MCP client without external dependencies
Project description
MCP Standalone
A standalone implementation of the MCP client without external dependencies. This package provides a command-line interface for interacting with MCP servers, with no dependency on the external mcp package.
Features
- Connect to any MCP server using the SSE protocol
- Ask questions to MCP servers with automatic tool detection
- Manage server configurations with an easy-to-use CLI
- Support for servers with predefined questions
- Automatic question matching for servers that require specific questions
Installation
You can install the package directly from the source:
cd /path/to/mcp-standalone
pip install -e .
Or build and install the package:
cd /path/to/mcp-standalone
pip install build
python -m build
pip install dist/mcp_standalone-0.1.0-py3-none-any.whl
Usage
Ask a question to an MCP server
# Ask a question to the default server
mcp-standalone ask "What is the weather today?"
# Ask a question to a specific server
mcp-standalone ask "What is the weather today?" --server trilogy-mcp
# Ask a question to a custom URL
mcp-standalone ask "What is the weather today?" --url https://mcp-server.example.com/sse
# List available predefined questions for a server
mcp-standalone ask --list-questions --server trilogy-mcp
Manage server configurations
# List all configured servers
mcp-standalone servers list
# Add a new server
mcp-standalone servers add my-server https://mcp-server.example.com/sse
# Remove a server
mcp-standalone servers remove my-server
# Set the default server
mcp-standalone servers set-default trilogy-mcp
# Export server configurations
mcp-standalone servers export --file servers.json
# Import server configurations
mcp-standalone servers import servers.json
Configuration
The package stores server configurations in ~/.config/mcp_standalone/config.json. This file is created automatically with default servers when you first run the tool.
Requirements
- Python 3.8 or higher
- httpx
- httpx-sse
- anyio
- pydantic
- pydantic-settings
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_standalone-0.1.0.tar.gz.
File metadata
- Download URL: mcp_standalone-0.1.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b48624dd592afeb23b73b3a1b40280e07515787307d09bc81b781e8798ed566
|
|
| MD5 |
fd47ae67025bab4d39ca2768d8b7a17d
|
|
| BLAKE2b-256 |
7591944d31ab3af00960ee7c3aa4c7e18f3e2123e45bd32235a245975e8fc842
|
File details
Details for the file mcp_standalone-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_standalone-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8018d87855f9142e453a88258fd1c570f279fd87fcae7d42e6109fb6bfc6764f
|
|
| MD5 |
2eb3537d888d1bc6530d8820fc6ee9c6
|
|
| BLAKE2b-256 |
75ed2281a870b9d9af7e11edbe48e042cd1fd7c25b12a85a00cbfc4572313fd2
|