Python MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Python MCP Serverwhat is 5 plus 3?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Python Model Context Protocol (MCP) Server & Client
A simple implementation of a Model Context Protocol (MCP) server and client in Python using the official mcp SDK.
This repository demonstrates how to expose tools, resources, and prompts from an MCP server using standard I/O (stdio) transport, and how an MCP client can connect, list tools, and invoke tool calls programmatically.
๐ Repository Structure
.
โโโ server.py
โโโ client.py
โโโ requirements.txt
โโโ .gitignore
โโโ README.md Related MCP server: mcpscope
โจ Features
MCP Server (server.py)
Tools:
add(a, b): Adds two integers.multiply(a, b): Multiplies two integers.greet(name): Returns a personalized greeting string.
Resources:
queue://{facility}/status: Dynamic resource exposing queue status for a given facility.
Prompts:
analyze_queue(facility): Pre-defined prompt template for evaluating facility bottlenecks and waiting times.
MCP Client (client.py)
Spawns the MCP server sub-process over
stdio.Establishes a
ClientSession.Automatically retrieves and prints registered server tools and schemas.
Demonstrates executing a tool call (
add) and printing the result.
๐ Getting Started
Prerequisites
Python 3.10 or higher installed.
Installation
Create and activate a virtual environment:
Windows:
python -m venv venv .\venv\Scripts\activatemacOS / Linux:
python3 -m venv venv source venv/bin/activate
Install dependencies:
pip install -r requirements.txt
๐งช Running the Code
Execute the client script to automatically launch the MCP server in a subprocess and execute sample tool calls:
python client.pyThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA Model Context Protocol server that provides basic tools for arithmetic operations (addition) and dynamic greeting resources, demonstrating MCP integration patterns for other projects and clients.6ISC
- FlicenseAqualityCmaintenanceA simple local MCP server that provides greeting and integer addition tools.2
- AlicenseAqualityCmaintenanceA minimal MCP server example demonstrating Tools, Resources, and Prompts. It enables calculations, time queries, note management, and code review prompts via stdio transport.313MIT
- Alicense-qualityCmaintenanceA basic MCP server that provides arithmetic tools (add, subtract) and a greeting resource, demonstrating core MCP concepts.GPL 3.0
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vectโฆ
A basic MCP server to operate on the Postman API.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/SaikiranBP/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server