Skip to main content
Glama

E-commerce MCP Server

create_text_index.py460 B
from pymongo import MongoClient from dotenv import load_dotenv import os load_dotenv() MONGODB_URI = os.getenv("MONGODB_URI") MONGODB_DB_NAME = os.getenv("MONGODB_DB_NAME") client = MongoClient(MONGODB_URI) db = client[MONGODB_DB_NAME] products_collection = db.products products_collection.create_index([ ("product_name", "text"), ("description", "text"), ("category", "text"), ("sub_category", "text") ]) print("✅ Text index created.")

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/Noyonchandrasaha/MCP-E-commerce-Chatbot'

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