ChatGPT
- Open the ChatGPT plugin directory and install NeuronSearchLab.
- Start a ChatGPT conversation with the NeuronSearchLab plugin enabled.
- When ChatGPT asks you to connect your account, select Connect.
- Sign up for NeuronSearchLab or log in to the NeuronSearchLab console.
- 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.
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 ascom.neuronsearchlab/mcp(searchneuronsearchlabin the registry API or directory). - Local (stdio) - run
npx -y @neuronsearchlab/mcpfrom 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’sadmin 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.
- claude.ai / Claude Desktop
- Claude Code
- OpenAI Codex
- Cursor / Windsurf
- Open Settings → Connectors → Add custom connector.
- Paste
https://console.neuronsearchlab.com/api/mcpand click Add. - Click Connect - you’ll be taken to your NeuronSearchLab console to sign in and approve the permission scopes.
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.- List contexts and confirm the exact context/surface to inspect.
- Fetch recommendations for a test user and selected context.
- Search the catalog for a concrete product/content phrase and compare result IDs.
- Explain one ranked item with the
request_idfrom the recommendation/search response when available. - Optional, sandbox only: draft or toggle a rule after the explanation shows the expected leak.
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
- Create an API key or SDK credentials in Console > Security.
- Find the server on the MCP Registry as
com.neuronsearchlab/mcp. - Try the built-in NeuronSearchLab AI assistant in the console - it uses the same MCP tools.
- View the JavaScript SDK for direct programmatic access.

