Cover image
Try Now
2025-03-18

Mirror ofhttps://github.com/suhail-ak-s/mcp-typesense-server

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Typesense MCP Server


npm version License: MIT Node.js Version

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

Typesense MCP Server Demo | Claude Desktop

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",
        "--api-key", "your-api-key"
      ]
    },
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Components

Resources

The server provides information about Typesense collections:

  • Collection Schemas (typesense://collections/<collection>)
    • JSON schema information for each collection
    • Includes field names and data types
    • Sample documents for understanding data structure

Resource Templates

The server provides templates for:

  • typesense_search - Template for constructing Typesense search queries
  • typesense_collection - Template for viewing Typesense collection details

Usage with Claude Desktop

To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:

{
  "mcpServers": {
    "typesense": {
      "command": "npx",
      "args": [
        "-y",
        "typesense-mcp-server",
        "--host", "your-typesense-host",
        "--port", "8108",
        "--protocol", "http",
        "--api-key", "your-api-key"
      ]
    }
  }
}

Logging

The server logs information to a file located at:

/tmp/typesense-mcp.log

This log contains detailed information about server operations, requests, and any errors that occur.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

相关推荐

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • 田中 楓太
  • A virtual science instructor for engaging and informative lessons.

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • ariofarmani
  • Test repository for GitHub MCP server functionality

  • 1Panel-dev
  • 💬 MaxKB is a ready-to-use AI chatbot that integrates Retrieval-Augmented Generation (RAG) pipelines, supports robust workflows, and provides advanced MCP tool-use capabilities.

    Reviews

    5 (1)
    Avatar
    user_YtxpqJyb
    2025-04-16

    I recently had the pleasure of using suhail-ak-s_mcp-typesense-server and I must say, it has exceeded my expectations. Developed by MCP-Mirror, this server is robust and highly effective for managing search queries. The documentation provided in the GitHub link is clear and user-friendly, making the initial setup straightforward. The community support is also a significant advantage. I highly recommend checking out suhail-ak-s_mcp-typesense-server for anyone in need of a reliable typesense solution.