Skip to main content
Glama

Searchcraft MCP Server

Official

The Searchcraft MCP Server provides a suite of tools for managing your Searchcraft cluster's Documents, Indexes, Federations, Access Keys, and Analytics. It enables MCP Clients, like Claude Desktop, to be prompted in plain English to perform administrative actions like setting up search indexes, access keys, ingesting documents, viewing analytics, searching indexes, and more.

Available Tools

Index Management

Tool NameDescription
create_indexCreate a new index with the specified schema. This will empty the index if it already exists.
delete_indexDelete an index and all its documents permanently.
get_all_index_statsGet document counts and statistics for all indexes.
get_index_schemaGet the schema definition for a specific index.
get_index_statsGet statistics and metadata for a specific index (document count, etc.).
list_all_indexesGet a list of all indexes in the Searchcraft instance.
patch_indexMake partial configuration changes to an index schema (search_fields, weight_multipliers, etc.).
update_indexReplace the entire contents of an existing index with a new schema definition.

Document Management

Tool NameDescription
add_documentsAdd one or multiple documents to an index. Documents should be provided as an array of JSON objects.
delete_all_documentsDelete all documents from an index. The index will continue to exist after all documents are deleted.
delete_document_by_idDelete a single document from an index by its internal Searchcraft ID (_id).
delete_documents_by_fieldDelete one or several documents from an index by field term match (e.g., {id: 'xyz'} or {title: 'foo'}).
delete_documents_by_queryDelete one or several documents from an index by query match.
get_document_by_idGet a single document from an index by its internal Searchcraft ID (_id).

Federation Management

Tool NameDescription
create_federationCreate or update a federation with the specified configuration.
delete_federationDelete a federation permanently.
get_federation_detailsGet detailed information for a specific federation.
get_federation_statsGet document counts per index for a federation as well as the total document count.
get_organization_federationsGet a list of all federations for a specific organization.
list_all_federationsGet a list of all federations in the Searchcraft instance.
update_federationReplace the current federation entity with an updated one.

Authentication & Key Management

Tool NameDescription
create_keyCreate a new authentication key with specified permissions and access controls.
delete_all_keysDelete all authentication keys on the Searchcraft cluster. Use with extreme caution!
delete_keyDelete a specific authentication key permanently.
get_application_keysGet a list of all authentication keys associated with a specific application.
get_federation_keysGet a list of all authentication keys associated with a specific federation.
get_key_detailsGet detailed information for a specific authentication key.
get_organization_keysGet a list of all authentication keys associated with a specific organization.
list_all_keysGet a list of all authentication keys on the Searchcraft cluster.
update_keyUpdate an existing authentication key with new configuration.

Stopwords Management

Tool NameDescription
add_stopwordsAdd custom stopwords to an index. These are added on top of the default language-specific dictionary.
delete_all_stopwordsDelete all custom stopwords from an index. This only affects custom stopwords, not the default language dictionary.
delete_stopwordsDelete specific custom stopwords from an index. This only affects custom stopwords, not the default language dictionary.
get_index_stopwordsGet all stopwords for an index, including both default language dictionary and custom stopwords.

Synonyms Management

Tool NameDescription
add_synonymsAdd synonyms to an index. Synonyms only work with fuzzy queries, not exact match queries.
delete_all_synonymsDelete all synonyms from an index.
delete_synonymsDelete specific synonyms from an index by their keys.
get_index_synonymsGet all synonyms defined for an index.

Search & Measurement

Tool NameDescription
get_measure_conversionGet measurement conversion data with optional filtering and aggregation parameters.
get_measure_summaryGet measurement summary data with optional filtering and aggregation parameters.
get_search_resultsPerforms a search query using the Searchcraft API with support for fuzzy/exact matching, facets, and date ranges.
get_searchcraft_statusGet the current status of the Searchcraft search service.

Getting Started

Environment Variables

Create .env file at the project's root and fill in the values:

# Server Config USER_AGENT=searchcraft-mcp-server/<project-version> DEBUG=true PORT=3100 # Searchcraft Config ENDPOINT_URL= # The endpoint url of your Searchcraft Cluster ADMIN_KEY= # The admin key (super user key) of your Searchcraft Cluster

.env sample

Running the Server

Make sure your environment has the correct version of node selected.

nvm use

Install dependencies with yarn

yarn

Build & Start the server

yarn build yarn start

Usage With Claude Desktop

The server must be running in order for Claude Desktop to detect searchcraft-mcp-server's tools.

searchcraft-mcp-server uses StreamableHTTPServerTransport, so in order to connect it to Claude Desktop, we use mcp-remote ↗︎.

In your claude desktop config file, add the following:

claude_desktop_config.json

{ "mcpServers": { "searchcraft": { "command": "npx", "args": [ "mcp-remote", "http://localhost:<MY-PORT-FROM-ENV>/mcp" ] } } }

The claude desktop config file can be found at /Users/[My Workspace]]/Library/Application Support/Claude/claude_desktop_config.json. If no file exists here you can create it.

Claude desktop config example

Claude Desktop Node Version

We have experienced that when Claude Desktop runs the command to connect to the MCP server, it can sometimes choose an older version of Node. If older versions of node are installed on your system, this can lead to issues. Ensure that your default Node version on your system is high enough to properly run the server.

Debugging

To view claude's logs for debugging purposes, use the npm script:

yarn claude-logs

Inspector Tool

You can view and try out the available tools/prompts/resources using the inspector. While the mcp server is running, you can launch the inspector:

yarn inspect
  • Choose Transport Type: Streamable HTTP
  • Specify the URL that the server is running on, including the port number.
  • Hit "Connect"
http://localhost:<MY-PORT-FROM-ENV>/mcp

The Inspector allows you to view available tools and to try making test calls to them.

Resources

License

Licensed under the Apache 2.0 License.

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

An MCP server that enables AI assistants like Claude Desktop to search and retrieve information from custom search indexes created with Searchcraft.

  1. Index Management
    1. Document Management
      1. Federation Management
        1. Authentication & Key Management
          1. Stopwords Management
            1. Synonyms Management
              1. Search & Measurement
                1. Getting Started
                  1. Environment Variables
                  2. Running the Server
                2. Usage With Claude Desktop
                  1. Claude Desktop Node Version
                3. Debugging
                  1. Inspector Tool
                4. Resources
                  1. License

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      The Search MCP Server enables seamless integration of network and local search capabilities in tools like Claude Desktop and Cursor, utilizing the Brave Search API for high-concurrency and asynchronous requests.
                      Last updated -
                      1
                      52
                      Python
                      MIT License
                      • Linux
                    • -
                      security
                      F
                      license
                      -
                      quality
                      An MCP server that allows AI assistants like Claude to execute terminal commands on the user's computer and return the output, functioning like a terminal through AI.
                      Last updated -
                      38
                      Python
                      • Apple
                    • -
                      security
                      F
                      license
                      -
                      quality
                      An MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.
                      Last updated -
                      Python
                    • -
                      security
                      A
                      license
                      -
                      quality
                      An MCP server that integrates with Sonar API to provide Claude with real-time web search capabilities for comprehensive research.
                      Last updated -
                      JavaScript
                      MIT License

                    View all related MCP servers

                    MCP directory API

                    We provide all the information about MCP servers via our MCP API.

                    curl -X GET 'https://glama.ai/api/mcp/v1/servers/searchcraft-inc/searchcraft-mcp-server'

                    If you have feedback or need assistance with the MCP directory API, please join our Discord server