synapse-research
Uses OpenAI embeddings (text-embedding-3-small) for the research pipeline.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@synapse-research Research the latest trends in AI alignment for 2025"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
synapse-research
Deep-research MCP app. Exposes one task-augmented tool (start_research) that runs GPT-Researcher against Tavily (web search), Anthropic Claude (planner + writer LLM), and OpenAI (embeddings only), and streams progress back through both the MCP tasks protocol and the Upjack entity stream. Fully compliant with the MCP 2025-11-25 draft tasks utility via FastMCP 3.
View on mpak registry | Built by NimbleBrain
Quick Start
Install via mpak into your NimbleBrain workspace:
mpak install @nimblebraininc/synapse-researchSet the three required credentials in your host's shell (Bun auto-loads .env, or export directly):
export ANTHROPIC_API_KEY=sk-ant-...
export TAVILY_API_KEY=tvly-...
export OPENAI_API_KEY=sk-...Run a research task from your agent chat:
"Research what's new with Model Context Protocol in 2026"
The agent fires start_research, the worker streams progress into the chat UI and into the Synapse sidebar dashboard, and you get back a markdown report in ~30s–3min.
Related MCP server: gpt-researcher-mcp
Architecture
chat: "research X"
│
▼
NimbleBrain engine ──┐
│ tools/call (task-augmented)
▼
FastMCP server (this app)
│
├─► creates research_run entity (status=working)
├─► spawns worker (asyncio)
│ │
│ ├─► ctx.report_progress ──► notifications/tasks/status ──► engine
│ └─► app.update_entity ──► filesystem ──► Synapse UI live stream
│
└─► returns CreateTaskResult immediately
(engine polls tasks/get, retrieves via tasks/result when terminal)Two independent channels update in lockstep:
Engine channel — MCP task status notifications. The engine uses these to render progress in the chat UI and to stabilise polling cadence.
UI channel — entity writes via Upjack. The Synapse sidebar app reads the entity stream to render a live dashboard of runs.
UI retry flow
The sidebar's "Retry with same query" button uses useCallToolAsTask("start_research") from the Synapse SDK (≥ 0.7.0). The task handle returns a taskId in under a second; the new research_run entity materialises shortly after (the worker creates it as its first action), and the UI navigates to the new detail page off the entity channel — not by waiting on the task's terminal result, which arrives minutes later. Second click on the button while "Starting…" routes through handle.cancel().
Legacy hosts (platform builds prior to the tasks-capability advertisement) cause callToolAsTask to throw. The UI catches that case and falls back to synapse.callTool fire-and-forget, so the feature keeps working with older deploys — only the starting-state indicator and the cancel handle degrade.
Configuration
Credentials (declared as user_config in manifest.json)
The host runtime prompts for these at install time or resolves them from a workspace-scoped store, then injects them into the bundle subprocess via mcp_config.env:
Config key | Env var exposed | Purpose |
|
| Claude LLM — planning + report writing |
|
| Web search |
|
| Embeddings only ( |
All three are required and marked sensitive: true.
Routing (hard-coded in mcp_config.env)
Not tenant-tunable in v1 — set directly in the manifest:
RETRIEVER=tavily
FAST_LLM=anthropic:claude-haiku-4-5
SMART_LLM=anthropic:claude-sonnet-4-6
STRATEGIC_LLM=anthropic:claude-sonnet-4-6
EMBEDDING=openai:text-embedding-3-smallTo change an LLM or retriever, edit manifest.json and reinstall the bundle. Promoting any of these to user_config is a one-line change if per-workspace tuning is needed.
Cost and latency
Typical run: 30s–3min.
Typical cost: $0.15–$0.60/run on Sonnet 4.6 + Tavily advanced + OpenAI embeddings.
Hard-cap: 5 minutes via
asyncio.wait_for. Longer runs are markedfailedwith a timeout error.
Data layout
One entity: research_run. Lives under:
$UPJACK_ROOT/apps/research/data/research_runs/{id}.jsonData-root resolution priority:
UPJACK_ROOTenv varMPAK_WORKSPACEenv var~/.synapse-research(fallback)
Each workspace spawns its own server process with its own root. There is no cross-workspace state inside the server.
Running locally
Install deps
uv sync
cd ui && npm install && npm run build && cd ..Stdio (Claude Desktop, any MCP client)
uv run python -m mcp_research.serverHTTP (NimbleBrain platform)
uv run uvicorn mcp_research.server:app --port 8002Tests (keyless — no API keys required)
uv run pytest tests/ -vThe spec-compliance suite (tests/test_spec_compliance.py) exercises every MUST from the MCP tasks draft: capability advertisement, execution.taskSupport gating, tasks/get|result|cancel|list, TTL behaviour, progress notifications, workspace isolation. The worker suite (tests/test_worker.py) covers happy path, cancel, failure, monotonic progress, and source streaming. All tests use a FakeGPTR monkeypatch so real providers are never called in CI.
Tool reference
Tool | Task support | Description |
|
| The only custom tool. Runs the research worker end-to-end. |
| n/a | Auto-generated entity tool (read by id). |
| n/a | Auto-generated entity tool. |
| n/a | Auto-generated entity tool. |
| n/a | Auto-generated entity tool (soft delete). |
Cancellation is handled at the MCP protocol level via tasks/cancel. The worker catches asyncio.CancelledError, flips the entity to cancelled, and re-raises so FastMCP transitions the task to its cancelled terminal state.
Contributing
See CLAUDE.md for the architecture walkthrough, commands, conventions, and build pipeline.
Quality gates (run before opening a PR):
uv run ruff check src/ tests/
uv run ruff format --check src/ tests/
uv run ty check src/
uv run pytest tests/ -v
cd ui && npm ci && npm run buildCI enforces the same gates — see .github/workflows/ci.yml.
Ecosystem
NimbleBrain — the agent platform this app runs on
mpak — MCP bundle registry where releases are published
Upjack — declarative AI-app framework (entity schemas, skills, hooks)
Synapse SDK — React hooks powering the UI
GPT-Researcher — Apache-2.0 research engine this app wraps
License
MIT — see LICENSE.
Available Tools
7 toolsadd_fieldB
Add a new field to an entity schema. Validates the change is safe, writes the updated schema to disk, and reloads it.
Inputs: default (required), field_name (required), field_type (required), entity_type (required), +2 more. Returns: object
delete_research_runA
Delete a research_run by ID. Soft delete by default (sets status to 'deleted'). Set hard=true to permanently remove. IDs start with rr_.
Inputs: research_run_id (required), hard. Returns: A research task execution. Status mirrors the MCP task lifecycle (working, comp…
get_research_runB
Get a research_run by ID. IDs start with rr_.
Inputs: research_run_id (required). Returns: A research task execution. Status mirrors the MCP task lifecycle (working, comp…
list_research_runsA
List research_runs. Filters by status (default: active). Returns newest first. IDs start with rr_.
Inputs: _name, limit, status. Returns: count, entities
rebuild_indexA
Force a full rebuild of the relationship index from entity files. Use this if the index seems stale or after manual file edits.
Inputs: no named parameters. Returns: object
search_research_runsA
Search research_runs with text query and/or structured filters. Text query matches across all string fields (case-insensitive). Filters support: direct equality, $gt, $gte, $lt, $lte, $ne, $in, $contains, $exists. Sort with '-field' for descending. IDs start with rr_.
Inputs: sort, _name, limit, query, +1 more. Returns: count, entities
start_researchA
Run a research task on the given query. Supports MCP task augmentation — clients that advertise tasks.requests.tools.call may wrap the request with a task field to receive a CreateTaskResult and poll via tasks/get; clients that do not will block until the research completes and receive the full report inline. Either way, the server creates a research_run entity and updates its progress in real time so the Synapse UI can render live status. The worker typically takes ~60 seconds to 3 minutes and returns a markdown report. Pass title (3-8 word label) when you already know the topic — saves a background LLM call the server would otherwise make to derive one. Two ways to anchor research on existing material (use exactly one): seed_uri is a files:// URI the server reads itself via the host's ai.nimblebrain/host-resources extension — preferred when the host advertises the extension, since the agent doesn't have to load file bytes through its own context. seed_data is raw text passed inline by the agent — the universal fallback that works on every host. If the host doesn't support host-resources and seed_uri is provided, the tool returns a clear error telling the agent to retry with seed_data instead.
Inputs: query (required), title, seed_uri, seed_data. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Tools are mostly distinct: get, list, search, delete, start for research runs, plus add_field and rebuild_index for supporting operations. However, start_research and the list/search tools could cause some confusion, as start_research creates a run while list/search find existing ones.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., get_research_run, add_field). No mixing of conventions or vague verbs.
With 7 tools, the server is well-scoped for managing research runs and associated schema/index operations. Not too few or too many relative to the domain.
The server covers core operations for research runs (create via start_research, read via get/list/search, delete) but lacks an explicit update operation for runs. Schema management is limited to adding fields. This is a notable gap.
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
One MCP server for all web data. Scrape, search, crawl, and AI research in one install.
Web search API and MCP server for developers building AI agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for AI-powered research using Gemini. Provides fast grounded web search, deep autonomous research, URL extraction, and session management.9154 PyPI10MIT
- AlicenseBqualityDmaintenanceWraps the gpt-researcher tool as an MCP server, enabling automated web research, information summarization, and structured report generation via natural language queries.266 npm83 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceEnables deep research tasks using a multi-agent architecture that integrates any LLM and MCP tools. Available via MCP stdio, streamable HTTP, and SSE transports.16MIT
- AlicenseNot gradedqualityDmaintenanceMulti-purpose research MCP server integrating web search, deep research, web scraping, research methodology routing, and GPT Researcher report generation.MIT