mcp-products-server
by biobshub·★ 0·综合分 33
基于.NET的 MCP 服务器,提供产品搜索和营销摘要工具,集成 Cosmos DB 和 Blazor 客户端界面。
概述
MCP Products Server 是一个全面的实现,使用 .NET Model Context Protocol SDK、Semantic Kernel 和 Aspire。它通过混合向量和全文搜索提供产品搜索功能,以及生成、检索、更新和删除营销摘要的工具。架构包括 HTTP JSON-RPC 传输层、全面的日志记录和 Azure Cosmos DB 用于数据存储。项目还包括一个 Blazor 客户端应用程序用于测试和演示。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您使用.NET生态系统、Azure服务,并且需要产品搜索和营销内容生成功能,请选择此MCP服务器。
什么时候不要选它
如果您需要非Azure数据库集成或想使用C#/.NET以外的语言进行开发,请避免使用此服务器。
此 server 暴露的工具
从 README 抽取出 7 个工具hybrid_search_productsVector + keyword search for semantic understanding
get_product_by_idRetrieve a specific product by ID
generate_product_summaryCreate marketing summaries with AI-generated content
get_product_summaryRetrieve existing product summaries
update_product_summaryUpdate marketing content while preserving automated fields
delete_product_summaryRemove product summaries
list_product_summariesGet all summaries in the database
可对比工具
安装
安装
前置条件
- .NET 9.0 SDK
- Azure Cosmos DB 账户
- Azure OpenAI 服务(可选)
设置
- 克隆仓库:
git clone <repository-url>
cd mcp-products-server- 配置环境:
创建包含您的 Azure 端点和配置的 appsettings.Development.json
- 使用 .NET Aspire 运行(推荐):
cd mcp-products-server.AppHost
dotnet run或单独运行组件:
# 终端 1:MCP 服务器
cd mcp-products-server
dotnet run
# 终端 2:Blazor 客户端
cd mcp-products-client
dotnet runClaude Desktop 配置
添加到 Claude Desktop config.json:
{
"mcpServers": {
"products-server": {
"command": "dotnet",
"args": ["run"],
"cwd": "/path/to/mcp-products-server"
}
}
}FAQ
- 这个 MCP 服务器使用什么数据库?
- 服务器使用 Azure Cosmos DB 进行向量搜索和产品数据及营销摘要的文档存储。
- 我可以向此服务器添加自定义工具吗?
- 是的,您可以在 Tools/ 目录中创建带有 [McpServerTool] 属性的新工具类,它们将被自动发现和集成。
mcp-products-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。