MCP Orders 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 Orders ServerCreate an order for 10 units of product ID 505"
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.
MCP Orders Server — Practice Project
A small practice project to learn how the Model Context Protocol (MCP) works. It exposes an in-memory “orders” API as MCP tools so an MCP client (e.g. Cursor) can create and list orders via the protocol.
What’s in this repo
app/— Core domain: Pydantic models (Order,CreateOrderRequest) and service functions (create_order,list_orders) that keep orders in memory.mcp_server/— MCP server built with FastMCP: exposes two tools that call intoapp.mcp.json— Example MCP config for Cursor (or copy into.cursor/mcp.jsonor~/.cursor/mcp.json).
Related MCP server: MCP Server Sample
How MCP fits in
MCP server = process that exposes tools (and optionally resources, prompts). Here it’s
mcp_server/server.py, which runs over stdio and talks JSON-RPC.MCP client = app that discovers and calls those tools. Cursor is an MCP client; when you add this server in Cursor’s MCP settings, Cursor spawns the server and sends tool calls to it.
Tools = named functions with typed arguments. This server exposes:
create_order_tool(product_id, quantity)— creates an order and returns it.list_orders_tool()— returns all orders.
So “how MCP works” here: Cursor sends a tool call (e.g. create order with product_id 1, quantity 255) → MCP server receives it → server calls create_order → returns the new order as the tool result → Cursor shows it to you.
Setup
cd /path/to/MCP
python -m venv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
pip install -r requirements.txtRun the MCP server locally (stdio)
From the project root:
python mcp_server/server.pyThe server runs over stdio and waits for JSON-RPC messages. It will exit quickly if nothing is connected; that’s expected. To use it, run it via an MCP client (e.g. Cursor).
Use with Cursor
Config — Cursor reads MCP config from:
Project:
.cursor/mcp.jsonUser:
~/.cursor/mcp.json
Example config (adjust paths if needed):
{ "mcpServers": { "orders-server": { "command": "/path/to/MCP/venv/bin/python", "args": ["mcp_server/server.py"], "cwd": "/path/to/MCP" } } }cwdmust be the project root so theapppackage can be imported.Restart Cursor (or reload MCP) so it picks up the config and starts the server.
In Cursor you can then call the create order and list orders tools (e.g. from the MCP / Composer tools UI).
Project layout
MCP/
├── app/
│ ├── schema.py # Order, CreateOrderRequest (Pydantic)
│ ├── service.py # create_order(), list_orders() — in-memory store
│ └── main.py # optional FastAPI app (not required for MCP)
├── mcp_server/
│ └── server.py # FastMCP server, create_order_tool, list_orders_tool
├── mcp.json # example MCP config for Cursor
├── requirements.txt
└── README.mdTech used
Python 3
MCP — Model Context Protocol SDK
FastMCP — from the MCP package, for defining tools and running the stdio server
Pydantic — request/response models
This repo is for learning: minimal persistence (in-memory only), no database, no auth — just enough to see how an MCP server exposes tools and how a client calls them.
This 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
- AlicenseBqualityDmaintenanceAn educational implementation of a Model Context Protocol server that demonstrates how to build a functional MCP server for integrating with various LLM clients like Claude Desktop.Last updated1161MIT
- AlicenseBqualityDmaintenanceAn educational implementation of a Model Context Protocol server that demonstrates how to build a functional MCP server integrating with various LLM clients.Last updated2MIT
- FlicenseBqualityDmaintenanceA basic starter project for building Model Context Protocol (MCP) servers that enables standardized interactions between AI systems and various data sources through secure, controlled tool implementations.Last updated2
- Alicense-quality-maintenanceA standardized MCP server implementation that provides AI models with dynamic tool discovery, execution, and context management capabilities. Built with FastAPI, it offers a modular architecture for easily adding new tools and managing AI application interactions through the Model Context Protocol.Last updated13
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP (Model Context Protocol) server for Appwrite
Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, P…
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/connect-abdullah/simple_orders_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server