Skip to main content
Glama
sebastian946

semantic-product-search-mcp

by sebastian946

セマンティックプロダクト検索

セマンティックな商品検索:キーワードマッチングではなく、クエリの意図を理解し(埋め込み+類似性検索)、エージェントを使用してカタログに関する推奨を生成します。カタログはMCPサーバーとして公開され、別のエージェントによって消費されます。

🚧 活発に開発中のプロジェクト。現在 フェーズ1 · バックエンドセットアップ にあります。 アーキテクチャ、デモ、設計上の決定に関するセクションは、エンドツーエンドのフローが機能するようになった後で完成させます。

スタック

  • API: FastAPI

  • エージェント / オーケストレーション: LangChain + LangChain Anthropic (Claude)

  • ローカルモデル: Ollama

  • 可観測性: LangSmith

  • 設定 / バリデーション: Pydantic + Pydantic Settings

  • データベース: Postgres + pgvector(ローカル開発時:SQLite)

  • パッケージマネージャー: uv

Related MCP server: Vertex AI Search for Commerce MCP Server

プロジェクト構造

app/
  main.py           # entrypoint de la API
  api/routes.py      # rutas HTTP
  catalog/           # ingesta + modelos de datos del catálogo
  search/             # embeddings + similarity search
  reviews/
  mcp_server/         # servidor MCP (expone el catálogo/búsqueda como tools)
  agent/               # agente que consume el MCP y arma la recomendación
  core/
    config.py         # settings (variables de entorno)
    db.py              # conexión a Postgres/pgvector
  models/
    schemas.py         # modelos Pydantic compartidos
tests/

ローカルセットアップ

必要条件:Python >= 3.12 および uv がインストールされていること。

# Instalar dependencias
uv sync

# Configurar variables de entorno
cp .env.example .env
# completar ANTHROPIC_API_KEY y LANGSMITH_API_KEY en .env

# Correr el entrypoint
uv run python -m app.main

環境変数

変数

デフォルト

説明

ENVIRONMENT

development

実行環境

LANGSMITH_TRACING

false

LangChainのLangSmithでのトレーシングを有効化

LANGSMITH_ENDPOINT

https://api.smith.langchain.com

LangSmithのエンドポイント

LANGSMITH_API_KEY

(必須)

LangSmithのAPIキー

LANGSMITH_PROJECT

SemanticProductSearch

LangSmithのプロジェクト

ANTHROPIC_API_KEY

(必須)

Anthropic (Claude) のAPIキー

DATABASE_URL

sqlite:///./semantic_product_search.db

データベースの接続文字列

EMBEDDING_MODEL

all-MiniLM-L6-v2

埋め込みモデル

MODEL_NAME

sentence-transformers/all-MiniLM-L6-v2

類似性検索に使用するモデル

TOP_K

5

検索ごとに返す結果の数

⚠️ APIキーやシークレットの値は決してログに記録しないでくださいANTHROPIC_API_KEYLANGSMITH_API_KEY など)。Settings をデバッグする必要がある場合は、失敗したフィールドの名前のみを出力し、その値は出力しないでください — app/core/config.py は起動時の検証でそのように動作します。

ロードマップ

開発はフェーズに分けて整理されています(Notionボードを参照):

  1. バックエンドセットアップ

  2. カタログ + 埋め込み

  3. セマンティック検索

  4. レビュー + コメント

  5. MCPサーバー

  6. エージェント + 推奨

  7. REST API + ストリーミング

  8. 最適化

  9. フロントエンド + 公開

アーキテクチャと設計上の決定

未定 — プロジェクトにエンドツーエンドのフローができ、実際のコンテキストで図、デモ、決定事項(キャッシュ、検索+再ランキングなど)を説明できるようになった時点で、フェーズ9(PROD-32)で文書化します。

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

Related MCP Connectors

  • Agent-native product catalog for AI shopping agents. 296M+ products, 28 countries.

  • Product discovery for AI agents: ranked products and bundles from the open merchant web.

  • Policy review and purchase discovery for AI-agent commerce actions.

View all MCP Connectors

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/sebastian946/SemanticProductSearch'

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