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., "@mcp_serverconvert 100 USD to EUR"
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.
Startup MVP — MCP Server & Client
This repository implements the project structure requested in the exercise: a small MCP-style tools server and a CLI client that can call the server's tools. The implementation is intentionally minimal and deterministic so it runs without external API keys, while also allowing integration with real APIs when the corresponding environment variables are provided.
Key features included:
MCP tools server (
server/mcp_server.py) exposing endpoints for currency conversion, geocoding and weather.Client CLI (
client/cli_interface.py) that supports English commands and Spanish special commands requested in the exercise (/salir,/clear,/status,/help).Clear, documented project layout with environment example and requirements.
Architecture
Server: FastAPI app in
server/mcp_server.pyproviding lightweight tools endpoints.Client: Python CLI in
client/cli_interface.pythat calls the MCP server using HTTP.Config:
config/settings.pycentralizes env-based settings.
Related MCP server: Weather MCP Server
Files and structure
startup-mvp/
├── server/
│ ├── __init__.py
│ ├── mcp_server.py # FastAPI app exposing tools
│ ├── currency_tools.py # Currency conversion helpers
│ ├── weather_tools.py # Weather helper (requires coords)
│ ├── geocoding_tools.py # City -> coordinates helper
│ └── api_clients.py # HTTP clients for external APIs
├── client/
│ ├── __init__.py
│ ├── openai_client.py # Client helpers that talk to the MCP server
│ └── cli_interface.py # CLI with Spanish special commands (/salir, /clear, /status)
├── config/
│ ├── __init__.py
│ └── settings.py # Environment-driven settings
├── main_server.py # Run the MCP server (uvicorn)
├── main_client.py # Run the CLI (asyncio)
├── requirements.txt
├── .env.example # Example env vars
└── README.mdEndpoints (MCP server)
POST /tools/convert_currency- body:{ "amount": float, "src": "USD", "dst": "EUR" }POST /tools/geocode- body:{ "city": "Madrid" }POST /tools/weather- body:{ "lat": float, "lon": float }
Added chat endpoints:
POST /chat/message- body:{ "user_message": "..." }— returns saved message and deterministic assistant reply.GET /chat/history- returns saved chat history.DELETE /chat/history- clears chat history.
Web UI:
The repository now includes a minimal web UI under ui/. When the MCP server is running you can open:
http://127.0.0.1:8000/ui/index.htmlto interact with the /chat endpoints from the browser.
The server returns deterministic placeholder data when external API keys are not set.
Entrega (versión final)
The final, cleaned project ready for delivery is located in the entrega/ folder at the repository root. It contains only the files required by the exercise and a minimal CI workflow under entrega/.github/workflows/ci.yml.
All other auxiliary files, tests, Docker artifacts and scripts were moved to archivos_extras/.
CLI usage (important: supports Spanish special commands)
Start the server in one terminal:
python main_server.pyStart the client in another terminal:
python main_client.pyCommands you can use inside the CLI:
convert <amount> <src> <dst>— Convert currencies (e.g.convert 10 USD EUR).geocode <city>— Get coordinates for a city (e.g.geocode Madrid).weather <lat> <lon>— Get weather for coordinates (e.g.weather 40.41 -3.7).
Spanish special commands (as requested in the exercise):
/salir— Salir del CLI (equivalent toexit)./clear— Limpiar historial local (if present). Note: the MCP tools server does not persist chat history by default./status— Comprueba la disponibilidad del servidor MCP (intenta acceder a/openapi.json)./help— Mostrar esta ayuda.
All commands also accept English equivalents for exit/quit.
Running and testing
Create and activate a virtualenv and install dependencies:
python -m venv venv
venv\Scripts\activate # Windows
pip install -r requirements.txtLaunch the server and client as shown above, then try examples:
$ convert 10 USD EUR
$ geocode Barcelona
$ weather 41.3851 2.1734
$ /status
$ /salirThis server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/befree83/mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server