SA

suhail-ak-2/mcp-typesense-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

19 stars 11 forks 质量 62 趋势 22MIT

A Model Context Protocol (MCP) server implementation that provides AI models with access to Typesense search capabilities.

概览

A Model Context Protocol (MCP) server implementation that provides AI models with access to Typesense search capabilities. This server enables LLMs to discover, search, and analyze data stored in Typesense collections. - List and access collections via typesense:// URIs - Each collection has a name, description, and document count - JSON mime type for schema access - - Search for documents in Typesense collections with powerful filtering - Input: Query text, collection name, search fields, filters, sort options, limit - Returns matching documents with relevance scores - - Retrieve specific documents by ID from collections - Input: Collection name, document ID - Returns complete document data - - Get statistics about a Typesense collection - Input: Collection name - Returns collection metadata, document count, and schema information - - Analyze collection structure and contents - Input: Collection name - Output: Insights about schema, data types, and statistics - - Get...

README

以下为原文 README 节选,完整内容请查看原文。

Typesense MCP Server


A Model Context Protocol (MCP) server implementation that provides AI models with access to Typesense search capabilities. This server enables LLMs to discover, search, and analyze data stored in Typesense collections.

Demo

Features

Resources

  • List and access collections via typesense:// URIs
  • Each collection has a name, description, and document count
  • JSON mime type for schema access

Tools

  • typesense_query

    • Search for documents in Typesense collections with powerful filtering
    • Input: Query text, collection name, search fields, filters, sort options, limit
    • Returns matching documents with relevance scores
  • typesense_get_document

    • Retrieve specific documents by ID from collections
    • Input: Collection name, document ID
    • Returns complete document data
  • typesense_collection_stats

    • Get statistics about a Typesense collection
    • Input: Collection name
    • Returns collection metadata, document count, and schema information

Prompts

  • analyze_collection

    • Analyze collection structure and contents
    • Input: Collection name
    • Output: Insights about schema, data types, and statistics
  • search_suggestions

    • Get suggestions for effective search queries for a collection
    • Input: Collection name
    • Output: Recommended search strategies based on collection schema

Installation

Via npm

# Global installation
npm install -g typesense-mcp-server

# Local installation
npm install typesense-mcp-server

Via mcp-get

npx @michaellatman/mcp-get@latest install typesense-mcp-server

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation for Development

Using Claude Desktop

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

On 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",
在 GitHub 查看完整 README

安装

npx -y typesense-mcp-server --host your-typesense-host --port 8108 --protocol http --api-key your-api-key
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "typesense": { "command": "node", "args": [ "~/typesense-mcp-server/dist/index.js", "--host", "your-typesense-host", "--port", "8108", "--protocol", "http", "--api-key", "your-api-key" ] }, } }