Purpose
Searchcraft MCP Server is an MCP server powered by Searchcraft, designed to provide developers with management capabilities for Searchcraft vertical search engine clusters. It allows MCP clients (such as Claude Desktop) to perform management operations through natural language prompts, including setting up search indexes, access keys, importing documents, viewing analytics and search indexes, and more.
Main Capabilities
The server provides three types of tools:
Engine API Tools
Provides direct access to the core functionality of a Searchcraft cluster, used to manage indexes, documents, federation, authentication, and search operations.
Import Tools
Provides a workflow for importing JSON data and automatically generating a Searchcraft schema, suitable for quickly setting up a new index from an existing data source. The tools are designed to work together:
- Analyze: Use analyze_json_from_file or analyze_json_from_url to inspect the JSON data structure.
- Generate: Use generate_searchcraft_schema to create a customized Searchcraft schema based on the analysis.
- Create: Use the engine API's create_index tool to create an index.
- Import: Use add_documents to populate the new index. An all-in-one approach can also be used: create_index_from_json performs analysis, schema generation, index creation, and importing of all documents in one step.
App Generation Tools
Creates a complete, runnable search application from JSON data, suitable for prototyping and demos. The tools provide an end-to-end solution:
- Data analysis: Automatically analyzes the JSON structure to understand field types and content.
- Template generation: Creates optimized search result templates based on the data fields.
- App creation: Clones and configures a complete Vite + React application.
- Environment setup: Configures Searchcraft connection settings.
- Ready to run: Provides a functional search application that can be started and customized immediately.
Usage
Environment Variables
Create a .env file in the project root directory and fill in the values. If you have already created an index via Vektron on Searchcraft Cloud, you can use that index's write key for API operations that do not require admin privileges. Important: If using a writekey, the MCP server should not be publicly exposed to the internet.
Installation and Setup
Ensure the environment has the correct version of Node.js. Use yarn to install dependencies and build the server. After building, two versions are generated: dist/server.js (HTTP server, for testing and remote deployment) and dist/stdio-server.js (stdio server, for Claude Desktop).
Deployment Options
- Claude Desktop (stdio): Recommended for local use, with better performance. The configuration file is located at macOS: ~/Library/Application Support/Claude/claude_desktop_config.json or Windows: %APPDATA%\Claude\claude_desktop_config.json.
- Claude Code: Use the CLI to configure the MCP server, supporting --scope local, --scope project, --scope user.
- Open WebUI (via Pipelines): Requires creating a custom pipeline to bridge the MCP server. Steps include starting the HTTP server, creating the pipeline file, installing the pipeline, and configuring Open WebUI to use Pipelines.
- HTTP Server: Used for testing, debugging, or remote deployment. Claude Desktop requires mcp-remote.
- Docker: Build the image and run the container, exposing port 3100 by default, and supporting the environment variables PORT, ENDPOINT_URL, CORE_API_KEY, DEBUG.
Using create_index_from_json
This tool provides a complete workflow for creating a Searchcraft index from JSON data. It supports local files or URLs. If you know the data language, you should use the language parameter (ISO 639-1 two-letter code). The tool supports multiple JSON structures: arrays of objects, objects with array properties, and single objects. It automatically finds the best array of objects to use for indexing.
Using create_vite_app
This tool creates a complete, runnable search app from JSON data.Use. Automatically analyze data structures, generate search templates, clone Vite templates, install dependencies, configure environments, customize templates, and update application code. The created applications include React + Vite, Searchcraft SDK integration, responsive design, automatically generated templates, environment configuration, and a development server. The tool intelligently analyzes data to create the optimal search results template, detecting title fields, description fields, image fields, date fields, and more. After creation, you can start the Vite server with cd apps/your-app-name yarn dev, and customize styles, add features, and deploy.
Complete Workflow
From raw JSON data to a functional search application: Step 1 create a Searchcraft index, Step 2 create a search application. If you already have an index, you can create the application directly.
Use Cases
- Quickly set up a search index from an existing JSON dataset.
- Prototype and demo search interfaces.
- Manage Searchcraft clusters through natural language.
- Create different search interfaces for the same data.
- Separate index optimization and UI in production deployments.
Limitations
- Using create_vite_app requires an existing Searchcraft index, a valid read key, Git, Node.js, and Yarn.
- If using a write key, the MCP server should not be publicly exposed to the internet.
- Specific fees, pricing, platform support, etc. are not provided in the materials.