Skip to main content
The NeuronSearchLab plugin lets you use your recommendation engine from ChatGPT. Ask questions, manage your catalogue, debug rankings, and run experiments through natural language conversation. The same capabilities are also available to other MCP-compatible clients through the hosted endpoint.

ChatGPT

  1. Open the ChatGPT plugin directory and install NeuronSearchLab.
  2. Start a ChatGPT conversation with the NeuronSearchLab plugin enabled.
  3. When ChatGPT asks you to connect your account, select Connect.
  4. Sign up for NeuronSearchLab or log in to the NeuronSearchLab console.
  5. Approve access. The authorization flow returns you to ChatGPT with the plugin connected to your workspace.
ChatGPT customers do not need to enable Developer mode, enter an MCP URL, create an API key, install an npm package, or run an MCP server locally. Those options are only for developers testing an unpublished plugin or connecting a different MCP client.
OpenAI publishes reviewed plugins through its universal plugin directory. See the official OpenAI plugin overview for the distinction between installing a published plugin and building or testing one.

AI agents for recommendation operations

A useful recommendation agent should be able to complete a small operational loop: fetch recommendations, search the catalogue, record a feedback event with request attribution, and explain why an item ranked where it did. That turns the assistant from a passive chatbot into an operator-facing tool for relevance investigations. Use the AI agents for recommendation operations article as the public framing, then run the demo path below to verify the MCP server against one real context. For clients other than ChatGPT, there are two ways to connect:
  • Hosted (recommended) - point your client at https://console.neuronsearchlab.com/api/mcp. Nothing to install; sign in with OAuth or pass an API key. Listed on the official MCP Registry as com.neuronsearchlab/mcp (search neuronsearchlab in the registry API or directory).
  • Local (stdio) - run npx -y @neuronsearchlab/mcp from your client, configured with environment variables.

Connect another MCP client

The hosted endpoint exposes a submission-safe customer administration profile. Its 53 tools cover account plan and usage visibility, recommendations, catalogue inspection, contexts, pipelines, rules, segments, experiments, campaigns, training, analytics, integrations, and event types. Every hosted tool requires the authenticated team’s admin scope. Credential creation, billing changes, and the arbitrary Platform API fallback are intentionally unavailable through the hosted endpoint. OAuth-created keys are named Connector: <client> and can be revoked at any time from Console > Security.
  1. Open Settings → Connectors → Add custom connector.
  2. Paste https://console.neuronsearchlab.com/api/mcp and click Add.
  3. Click Connect - you’ll be taken to your NeuronSearchLab console to sign in and approve the permission scopes.
That’s it: no npm, no config file, no copied keys.
The endpoint implements Streamable HTTP with OAuth 2.1 discovery based on RFC 8414 and RFC 9728, so compatible remote MCP clients can connect with OAuth or bearer headers.

Local installation (stdio)

This section is for developers using an MCP client that requires a local stdio process. It is not part of the ChatGPT plugin setup. For air-gapped environments, custom base URLs, or local MCP development, the server is published as @neuronsearchlab/mcp and your client runs it automatically through npx.

Claude Desktop

Add this to your Claude Desktop configuration file (claude_desktop_config.json):

Claude Code

Recommendation-ops demo path

After connecting the published ChatGPT plugin or another MCP client, run the smallest end-to-end loop before adding custom prompts or automations. Keep the first pass read-only so the assistant can investigate ranking behavior without mutating a production surface.
  1. List contexts and confirm the exact context/surface to inspect.
  2. Fetch recommendations for a test user and selected context.
  3. Search the catalog for a concrete product/content phrase and compare result IDs.
  4. Explain one ranked item with the request_id from the recommendation/search response when available.
  5. Optional, sandbox only: draft or toggle a rule after the explanation shows the expected leak.
For internal/admin mode, inspect operational state before proposing a change:
This is the buyer-facing story: ChatGPT audits a recommendation surface, explains the leak, and drafts the fix. Operators stay in control because destructive MCP tools carry annotations and the safe demo prompt explicitly asks for a draft before any rule write.

Configuration

All local configuration is done through environment variables: Core API mode (default, public) uses OAuth 2.0 client credentials against the Core API. It supports recommendations, events, and catalogue operations. Internal mode uses a static admin API key against the console API. It exposes the platform administration tools plus three trusted-client tools that are not available on the hosted endpoint: create_api_key, list_platform_routes, and call_platform_api.

Available tools

The sections below show the combined tool surface. Core API mode supports recommendation, event, and catalogue tools. Hosted and internal modes support the platform administration tools. Every tool carries MCP annotations (readOnlyHint and destructiveHint) so compatible clients can distinguish read-only operations from writes.

Recommendations and catalog

Segments

Experiments

Campaigns

Analytics

Platform administration


Example conversations

Get recommendations

“Get 5 recommendations for user alice@example.com in the homepage context”
The assistant calls get_recommendations and returns the ranked items with scores and metadata.

Debug a ranking

“Why did item prod-456 rank so low for user alice?”
The assistant calls explain_ranking and shows the score breakdown, which rules matched, and how each pipeline stage affected the result.

Create a rule

“Create a boost rule that promotes items in the Electronics category with a 2x weight”
The assistant calls create_rule with the appropriate conditions and actions.

Track an event

“Record that alice clicked on item prod-456”
The assistant calls track_event with the user ID, item ID, and event type.

Error handling

The MCP server includes automatic retry with exponential backoff for transient errors (429, 5xx, timeouts). All tool responses are formatted as human-readable text so the AI assistant can interpret and relay results clearly.

Next steps