by suhail-ak-s
A Model Context Protocol (MCP) server implementation that provides AI models with access to Typesense search capabilities, enabling LLMs to discover, search, and analyze data stored in Typesense collections.
mcp-typesense-server is a Model Context Protocol (MCP) server that allows AI models, specifically Large Language Models (LLMs), to interact with Typesense, a fast, open-source search engine. It enables LLMs to discover, search, and analyze data stored in Typesense collections.
You can install mcp-typesense-server globally or locally via npm:
npm install -g typesense-mcp-server
npm install typesense-mcp-server
Alternatively, you can use mcp-get
:
npx @michaellatman/mcp-get@latest install typesense-mcp-server
To use with Claude Desktop, you need to add a configuration to your claude_desktop_config.json
file. For example:
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"
]
}
}
}
For debugging, you can use the MCP Inspector by running:
npm run inspector
typesense://
URIs.typesense_search
(for constructing search queries) and typesense_collection
(for viewing collection details).Q: What is the Model Context Protocol (MCP)? A: The Model Context Protocol (MCP) is a standard that allows AI models to interact with external tools and data sources. mcp-typesense-server is an implementation of this protocol for Typesense.
Q: What is Typesense? A: Typesense is a fast, open-source search engine that provides a robust solution for building search experiences.
Q: How does mcp-typesense-server help LLMs? A: It provides LLMs with the ability to discover, search, and analyze data within Typesense collections, enhancing their knowledge and analytical capabilities.
Q: Where can I find the logs for mcp-typesense-server?
A: The server logs are located at /tmp/typesense-mcp.log
.
Q: What license is mcp-typesense-server released under? A: It is licensed under the MIT License, allowing for free use, modification, and distribution.
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.
typesense://
URIstypesense_query
typesense_get_document
typesense_collection_stats
analyze_collection
search_suggestions
# Global installation
npm install -g typesense-mcp-server
# Local installation
npm install typesense-mcp-server
npx @michaellatman/mcp-get@latest install typesense-mcp-server
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
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"
]
},
}
}
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.
The server provides information about Typesense collections:
typesense://collections/<collection>
)
The server provides templates for:
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"
]
}
}
}
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.
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.
Reviews feature coming soon
Stay tuned for community discussions and feedback