Skip to main content
Glama

Vercel MCP Python Server

by amitpuri
README.mdโ€ข3.97 kB
# MCP Client for Vercel MCP Python Server A rich, interactive client application to test and interact with your deployed MCP server. ## Features - ๐Ÿ”Œ **Connection Testing**: Verify server connectivity - ๐Ÿ”ง **Tool Discovery**: List and explore available MCP tools - ๐ŸŽฏ **Interactive Tool Calls**: Call tools with custom parameters - ๐Ÿ“š **Resource Management**: List and read MCP resources - ๐Ÿงช **Automated Testing**: Test all tools with predefined parameters - ๐ŸŽจ **Rich UI**: Beautiful console interface with colors and tables ## Quick Start ### 1. Setup ```bash # Navigate to client directory cd client-app # Install dependencies python setup.py # Or manually: pip install -r requirements.txt ``` ### 2. Configure Environment (Optional) The client uses environment variables for configuration. Copy the example file and customize: ```bash # Copy the example environment file cp .env.example .env # Edit the .env file to customize settings # MCP_SERVER_URL=https://your-deployed-server.vercel.app # MCP_TIMEOUT=10 # MCP_DEBUG=false ``` ### 3. Run the Client ```bash python mcp_client.py ``` ## Usage The client provides an interactive menu with the following options: ### 1. List Tools Shows all available MCP tools with their descriptions and parameters. ### 2. Call Tool Interactively call any tool by: - Selecting the tool name - Providing required parameters - Viewing the results ### 3. List Resources Display all available MCP resources. ### 4. Read Resource Read the content of a specific resource. ### 5. Test All Tools Automatically test all tools with predefined parameters: - **Echo**: "Hello from MCP Client!" - **Get Time**: Current server time - **Add Numbers**: 15 + 25 = 40 - **Weather Info**: San Francisco weather ### 6. Exit Close the client application. ## Available Tools Your MCP server provides these tools: | Tool | Description | Parameters | |------|-------------|------------| | `echo` | Echo back a message | `message` (string) | | `get_time` | Get current server time | None | | `add_numbers` | Add two numbers | `a` (integer), `b` (integer) | | `get_weather_info` | Get weather info (mock) | `location` (string) | ## Available Resources | Resource | Description | |----------|-------------| | `config://server` | Server configuration information | ## Example Output ``` ๐Ÿค– MCP Client โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ MCP Client for Vercel MCP Python Server โ”‚ โ”‚ Connecting to: https://your-deployed-server.vercel.app โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โœ… Server Status: running ๐Ÿ“Š Available Tools: 4 ๐Ÿ“š Available Resources: 1 ๐Ÿ”Œ Initializing MCP connection... โœ… Connected to: Vercel MCP Server ๐Ÿ“‹ Version: 1.0.0 ๐Ÿ”ง Protocol: 2024-11-05 ================================================== MCP Client Menu 1. List Tools 2. Call Tool 3. List Resources 4. Read Resource 5. Test All Tools 6. Exit ``` ## Configuration The client can be configured using environment variables in a `.env` file: | Variable | Description | Default | |----------|-------------|---------| | `MCP_SERVER_URL` | URL of the MCP server | `https://your-deployed-server.vercel.app` | | `MCP_TIMEOUT` | Request timeout in seconds | `10` | | `MCP_DEBUG` | Enable debug mode | `false` | ## Dependencies - `requests`: HTTP client for API calls - `colorama`: Cross-platform colored terminal output - `rich`: Rich text and beautiful formatting - `python-dotenv`: Environment variable management ## Server URL The client is configured to connect to: `https://your-deployed-server.vercel.app` To change the server URL, edit the `server_url` variable in `mcp_client.py`.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amitpuri/vercel-mcp-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server