Connect Brain Researcher to your coding agent
Four steps: 1) generate a personal token, 2) paste the config into Cursor, Codex, or Claude Code, 3) verify the connection, then 4) hand off a workflow. After setup you can hand off from any workflow, dataset, or KG view.
Generate your personal token
One active token per user. Generating a new one rotates the previous immediately. The full secret is shown only once, so copy it now.
Add Brain Researcher to your coding agent
Pick your client, then keep shell exports and MCP config files separate.
~/.bashrc, ~/.zshrc, or ~/.profile. Start your client from an environment that inherits BR_MCP_TOKEN. Do not paste these export lines into the MCP config file.mcp.json. It reads BR_MCP_TOKEN from your client environment.{
"mcpServers": {
"brain-researcher": {
"type": "http",
"url": "https://brain-researcher.com/mcp",
"headers": {
"Authorization": "Bearer ${env:BR_MCP_TOKEN}",
"Accept": "application/json, text/event-stream"
}
}
}
}Client-specific notes
Authorization: Bearer ${env:BR_MCP_TOKEN}. Start it from an environment that inherits BR_MCP_TOKEN.~/.codex/config.toml with bearer_token_env_var = "BR_MCP_TOKEN". Define that variable in your user shell profile, not in the Codex TOML. Keep the Accept header under [http_headers].Authorization: Bearer ${BR_MCP_TOKEN} in the hosted HTTP JSON config, but the variable itself still belongs in your user shell profile before launching Claude Code.Verify the connection
Start your agent after reloading the shell, then paste one of these prompts to confirm the tools are live.
show me the status of brain_researcher_mcp. Use the Brain Researcher MCP server_info and system_self_test tools. Keep the answer concise.
show me the status of brain_researcher_mcp. Use the brain-researcher MCP server_info and system_self_test tools. Keep the answer concise.
@brain-researcher: call server_info and system_self_test, then summarize whether the Brain Researcher MCP server is ready.
server_info returns ok=true, and system_self_test returns overall=pass. If a client cannot see those tools, ask it to inspect the exposed MCP tool names before trying another function.Run a workflow handoff
This prepares a recipe. It is not completed hosted execution unless artifacts are actually produced and inspected.
Use Brain Researcher MCP to prepare a runnable recipe for resting-state connectivity on ds000114. First inspect the available MCP tools, then call server_info and system_self_test. Use workflow_search for resting-state connectivity and then get_execution_recipe with tool_id="workflow_rest_connectome_e2e", target_runtime="python", params={"dataset_id":"ds000114"}. Return the exact recipe command, required inputs, expected artifacts, and any blockers before claiming execution is possible.Reference · agent rules
The public-facing version of the repo's Brain Researcher MCP agent rules.
- Confirm the Brain Researcher MCP server is active.
- Inspect the actual exposed tool names before invoking a function.
- Run health checks before claiming execution, validation, or data access.
- If MCP is unavailable, say that directly and continue with the closest fallback.
get_execution_recipereturns a recipe, not a completed analysis.- MCP stays available from your configured coding-agent environment.
- Success means expected artifacts, logs, and run manifests were produced and checked.
- Dangerous/admin execution tools should only be used when the user asks for them.
Reference · common functions
The active client may expose only a subset. Ask it to inspect the tool list first.
server_infosystem_self_testworkflow_searchtool_searchkg_search_nodeskg_search_datasetsget_execution_recipeplan_preflightplan_createpipeline_plan_validatepipeline_plan_reviewqsm_implementation_reviewrun_getrun_logsartifact_listartifact_read_text