MCP类型感知服务器添加福利群:解决AI开发者的「MCP实战痛点」一个模型上下文协议 (MCP)服务器实现,为 AI 模型提供对 Typesense 搜索功能的访问。该服务器使 LLMs 能够发现、搜索和分析存储在 Typesense 集合中的数据。
typesense:// URI 列出和访问集合typesense_query
typesense_get_document
typesense_collection_stats
analyze_collection
search_suggestions
# 全局安装
npm install -g typesense-mcp-server
# 本地安装
npm install typesense-mcp-server

npx @michaellatman/mcp-get@latest install typesense-mcp-server
安装依赖:
npm install
构建服务器:
npm run build
使用自动重建进行开发:
npm run watch
要与 Claude 桌面一起使用,请添加服务器配置:
在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"typesense": {
"command": "node",
"args": [
"~/typesense-mcp-server/dist/index.js",
"--host", "your-typesense-host",
"--port", "8108",
"--protocol", "http",
"--api-key", "your-api-key"
]
},
}
}

由于 MCP 服务器通过 stdio 进行通信,调试可能具有挑战性。我们推荐使用 MCP 检查器,它作为包脚本提供:
npm run inspector
检查器将提供一个 URL,用于在浏览器中访问调试工具。
服务器提供有关 Typesense 集合的信息:
typesense://collections/<collection>)
服务器提供以下模板:
要将此服务器与 Claude 桌面应用程序一起使用,请将以下配置添加到 claude_desktop_config.json 的 "mcpServers" 部分:
{
"mcpServers": {
"typesense": {
"command": "npx",
"args": [
"-y",
"typesense-mcp-server",
"--host", "your-typesense-host",
"--port", "8108",
"--protocol", "http",
"--api-key", "your-api-key"
]
}
}
}

服务器将信息记录到位于以下位置的文件中:
/tmp/typesense-mcp.log
此日志包含有关服务器操作、请求和发生的任何错误的详细信息。
此 MCP 服务器根据 MIT 许可证授权。这意味着您可以自由使用、修改和分发该软件,但需遵守 MIT 许可证的条款和条件。有关更多详细信息,请参阅项目存储库中的 LICENSE 文件。