MCP Products Server
Provides access to product management tools and resources via GitHub Copilot integration.
Supports database operations for product management, including inserting and fetching products.
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 Products Serveradd a new product named 'Wireless Mouse' with price $25.99"
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 Products Server
A hands-on Python project demonstrating Model Context Protocol (MCP) by building a product management server that integrates with Claude Desktop and GitHub Copilot.
🗂️ Project Structure
create_new_mcp/
│
├── mcp_server.py # MCP Server with tools, resource, and prompt template
├── add_product.py # DB logic to INSERT a product
├── fetch_products.py # DB logic to SELECT all products
├── db_connect.py # Database connection helper
├── .env # API keys and DB credentials (not committed)
├── .gitignore
└── README.mdRelated MCP server: GitHub MCP Server
⚙️ MCP Server — mcp_server.py
🔌 Configuration
Claude Desktop
Update claude_desktop_config.json:
{
"mcpServers": {
"products": {
"command": "uv.exe",
"args": [
"--directory", "C:\\path\\to\\create_new_mcp",
"run", "mcp_server.py"
]
}
}
}GitHub Copilot
Update mcp.json with the same server details.
🚀 Getting Started
Prerequisites
Python 3.10+
uvpackage managerMySQL database
Claude Desktop or GitHub Copilot
📚 Key Learnings
✅ MCP Tools are invoked directly by the LLM
✅ MCP Resources are fetched manually via host UI and injected into context
✅ Prompt Templates enable consistent prompt generation via
/command⚠️ MCP Sampling (server → LLM callback) is not yet supported by Claude Desktop or GitHub Copilot in practice
💡 Workaround for sampling: call Anthropic API directly from the MCP server
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.
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/lokesh1382/mcp-products-demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server