
Benefits
Lucidworks MCP server provides these advantages:- Self-service integration: Configure Claude Code to access Managed Fusion data without custom API development.
- Enterprise security: Leverages Managed Fusion’s existing security controls, including field-level security, role-based access, and audit logging.
- Multi-tenant architecture: Support multiple use cases with different data access patterns using query profiles and collection isolation.
- Query pipeline integration: Claude Code benefits from your custom query pipelines, ML models, and relevance tuning.
- Extensible tool framework: Add custom tools programmatically that automatically become available to Claude Code.
MCP server setup
Before you begin
Before configuring MCP access, ensure you have the following:- Managed Fusion 5.17 or later deployed with the MCP Server service running
- A Managed Fusion app configured with indexed content
- A query profile created for MCP access
- An API key generated in Managed Fusion with appropriate permissions
- Claude Code
https://FUSION_HOST:FUSION_PORT/mcp.Configure the MCP server
If you are using Managed Fusion, the Lucidworks team configures the MCP server for you. You can work with Lucidworks to define search experiences that map to specific Managed Fusion applications and query profiles.Connect Claude Code
To connect Claude Code to Managed Fusion, you need your Managed Fusion API key for authentication. The key is sent as an HTTP header with each request.Add the Lucidworks MCP server
--transport and --scope flags require a recent version of Claude Code.Test the connection
After configuring Claude Code, test the connection with these example prompts. These prompts verify that the MCP server is working correctly and that Claude Code can discover and use the configured search experiences.Retrieve search experiences
What search experiences are available?
Search by name
Search the Product Catalog for wireless headphones
Test multi-experience routing
Find recent HR policies in Employee Resources
Search with MCP
Lucidworks MCP server provides four tools that work together in a discovery-to-execution pattern. Claude Code automatically determines which tool to call based on the user’s query.List search experiences
Thelist_search_experiences tool discovers available search experiences configured in Managed Fusion.
You can use this tool in the following situations:
- You need to see what search experiences are available.
- You need to determine which search experience to use for a specific query.
- You need to help users who don’t know what they can search for.
Search documents
Thesearch_documents tool searches for documents and returns relevant results from Managed Fusion collections.
Based on user input, it automatically selects a search experience and can optionally filter and sort results.
For example, in Claude Code a user can input “Find all reports from the last six months and sort them with the newest ones first” to trigger a query that uses filters to specify the document type and date range and sort to order the results by date, newest to oldest.
Get a document
Theget_document tool fetches a specific document by its ID.
This is useful when search_documents has already been called and the user inquires about a specific document returned in those results.
The tool returns complete details about the document, such as its title, description, URL, similar documents (if MoreLikeThis is implemented), and highlighted fields (if highlighting is implemented).
Get the field schema
Theget_schema tool retrieves available fields within a specific search experience and returns schema information with sortable and searchable capability flags.
You can use this tool in the following situations:
- You need to discover what fields exist within a particular search experience.
- You need to determine which fields can be used for sorting.
- You need to determine which fields can be used for filtering.
- You need to display field information to users with human-readable names.
sort or filters parameters when searching documents, or when users ask questions like “What fields can I sort by?” or “What can I filter by?”.
The tool returns field names with their display values and capability flags.
By default, the tool returns only populated fields.
Set includeEmptyFields=true to retrieve the complete schema.
How the tools work together
Claude Code uses these tools in the following order:- When a user asks a question without specifying a search experience, Claude Code calls
list_search_experiencesto discover available options. - Claude Code analyzes the search experiences and matches them to the user’s query intent.
- Claude Code calls
search_documentswith the appropriate search experience. - Claude Code returns results to the user.
-
Calls
list_search_experiencesand receives the following data: - Identifies the “Product Catalog” search experience as the one that best matches the prompt.
-
Calls
search_documentswithsearchExperience: "Product Catalog"and the user’s query. - Returns the product results.
Example use cases
The following examples demonstrate common MCP integration patterns.Enterprise knowledge search
Enterprise knowledge search
Multi-language search
Multi-language search
Response with highlighting and MoreLikeThis
Response with highlighting and MoreLikeThis
Example multi-tenant configurations
Lucidworks MCP server supports multi-tenant architectures where different users or use cases access different data subsets.Employee vs. contractor access
Employee vs. contractor access
- The employee API key accesses a server with search experiences configured for full access to all collections.
- The contractor API key accesses a server with search experiences limited to public documentation and shared resources.
Public vs. authenticated access
Public vs. authenticated access
Troubleshooting
This section provides solutions for common MCP configuration issues.Connection failures
Connection failures
-
Verify the endpoint is accessible:
If the endpoint is accessible, it returns output similar to the example below. Any other result means that the endpoint is not accessible.The protocol version in this example (
2025-11-25) may differ from your installed version. See the MCP schema specification for the current version.
-
Check the URL path is exactly
/mcp(no trailing slash, not/api/mcp). -
Test with verbose logging:
401 Unauthorized - Invalid API Key
401 Unauthorized - Invalid API Key
403 Forbidden - Query Profile Not Authorized
403 Forbidden - Query Profile Not Authorized
400 Bad Request - Missing Required Header
400 Bad Request - Missing Required Header
x-api-key header is required for authentication:No results returned
No results returned
-
Verify the Managed Fusion app contains indexed content:
- Check that the query profile has access to the expected collections.
- Test the same query directly in Managed Fusion’s Query Workbench to confirm results exist.
- Review security trimming rules that might filter out documents for the API key’s role.
Slow response times
Slow response times
- Check the query profile’s pipeline stages for expensive operations.
- Review the query complexity (complex filter queries can impact performance).
- Monitor Managed Fusion’s query logs for slow queries.
- Consider optimizing ML model execution or caching strategies.
- Verify network latency between Claude Code and Managed Fusion instance.
- Contact Lucidworks if performance tuning is needed.
Expected search experience doesn't appear in list
Expected search experience doesn't appear in list
list_search_experiences returns fewer search experiences than you configured, follow these steps.Solution:-
Check server startup logs for:
INFO - Found N valid search experience(s): [names] - Compare logged names with your configuration.
-
Verify all required fields are populated (
name,description,application-name,query-profile). - Fix configuration and restart.
Search returns 'Search experience is not configured'
Search returns 'Search experience is not configured'
-
Call
list_search_experiencesto get exact names. - Use the exact name (case-sensitive).
- ❌ “engineering docs” (wrong case)
- ✅ “Engineering Docs” (exact match)
Connection errors - Unable to process request
Connection errors - Unable to process request
- Verify Managed Fusion is running and accessible.
-
Check that
application-nameexists in Managed Fusion (case-sensitive). -
Verify
query-profileexists and is enabled in Managed Fusion. - Check authentication and network connectivity.
- Review MCP server logs for detailed error messages.
Empty search results (No documents found)
Empty search results (No documents found)
- Verify documents are indexed in Managed Fusion (check Collections in Managed Fusion UI).
-
Try omitting the query parameter to return all documents (defaults to
*:*): - Try a broader query.
- Test the same query directly in Query Workbench.
-
Verify
application-namepoints to the correct Managed Fusion application. - Check query profile settings for permission filters.