Skip to main content
Glama

Marvin MCP

Ask Marvin, Marvin Labs' equity research analyst, from Claude, ChatGPT, Claude Code or any other MCP client. Marvin Labs hosts the server, so there is nothing to install: add one URL to your client and sign in with your Marvin account.

https://app-api.marvin-labs.com/v1/mcp

Setup for every client is also at docs.marvin-labs.com/mcp.

The server calls only the Marvin Labs public API (/v1/responses, /v1/conversations, /v1/agents, /v1/agent_results, /v1/companies, /v1/tools, /v1/feedback, /v1/me, /v1/wallet), and it acts as you. Conversations you start here show up in the Marvin app, and you can continue app conversations from here.

Connect

Add to Claude Add to ChatGPT

The buttons open the right page. Neither app can fill in the form from a link yet, so paste the URL above yourself.

Claude (claude.ai, Desktop and mobile)

  1. Open Customize → Connectors on claude.ai or in Claude Desktop.

  2. Click + Add, then Add custom connector.

  3. Name it Marvin and paste the URL.

  4. Keep the detected sign-in settings (OAuth, with Claude's own OAuth client) and click Add.

  5. Click Connect and sign in to Marvin.

To use it, click + in a chat, open Connectors and turn Marvin on. Once added, the connector also works in the mobile apps.

  • Free plan: Marvin counts as your one custom connector.

  • Team and Enterprise plans: an owner adds it once under Organization settings → Connectors (Add → Custom → Web). Each member then clicks Connect in their own Customize → Connectors.

ChatGPT (web; Business, Enterprise and Edu plans)

Your workspace admin may need to allow custom MCP servers first.

  1. Open Plugins.

  2. Click +, then Add custom MCP server.

  3. Name it Marvin, add a short description, and paste the URL under Connection.

  4. Choose OAuth for authentication, confirm the warning, then click Create as a plugin.

  5. Sign in to Marvin when ChatGPT asks.

To use it, type @Marvin in a new conversation.

Claude Code

claude mcp add --transport http marvin https://app-api.marvin-labs.com/v1/mcp

Then run /mcp in Claude Code to sign in. To use an API key instead of signing in, add --header "Authorization: Bearer mk_live_...". To create a key in the Marvin app, go to Account → API keys; it belongs to you in the team you have selected.

Other clients

Any MCP client that connects to remote servers over Streamable HTTP with OAuth works the same way: add the URL and sign in. If your client can't, use the local fallback.

Related MCP server: octagon-mcp-server

Tools

Tool

Does

ask_marvin(question, conversation_id?)

Asks a question, in a new conversation or an existing one. Returns the answer, or a response_id if it's still working

get_response(response_id)

Waits a little longer for an answer that's still running

cancel_response(response_id)

Stops a running answer

list_conversations(limit?, cursor?)

Your conversations, most recent first, including the app's

get_conversation(conversation_id, limit?, cursor?)

A conversation's questions and answers

list_agent_results(company?, agent?, mine?, limit?, cursor?)

Reports by Marvin's research agents that you can read: yours, ones shared with you, and public ones

get_agent_result(agent_result_id)

One report, in full

list_agents()

The research agents you can start, with the arguments each takes

start_agent(agent, arguments?)

Starts a research agent, which writes a new report and bills it like a run in the app. Returns at once with the agent_result_id; read the report later with get_agent_result

cancel_agent_run(agent_result_id)

Stops a run you started

show_figure(index, response_id? | agent_result_id?)

Shows one table or chart of an answer or report in the conversation, as the Marvin app draws it (clients that show MCP Apps)

get_format_guide()

How to show the table and chart blocks in answers

get_account()

Who you're signed in as, your team and its plan, and how much credit the team has left

send_marvin_feedback(comment, kind?, structured_data?)

Sends your feedback to the Marvin team: a problem, a rating of an answer, or companies to cover. Only when you ask for it

To research a company yourself instead of asking Marvin, use the same tools Marvin's analysts use. Each one answers in a single call, outside any conversation:

Tool

Does

find_company(query, limit?)

Companies matching a name, ticker or identifier (ISIN, CIK, a ticker on another exchange), best first

get_company(company)

A company's name, sector and industry, and its related companies (competitors, partners, customers, suppliers)

list_documents(company, document_type?, period?, date_from?, date_to?, limit?, cursor?)

A company's documents, newest first: filings, transcripts, press releases, Marvin's reports and your uploads

search_documents(company, query, terms?, n_results?, document_type?, period?, date_from?, date_to?)

The passages in a company's documents that answer a question, best first

read_document(document_id, section?, query?, start_token_offset?, max_token_length?)

A document by its id: whole, a window, or the text around a match

explore_document(company, document_id, question, section?)

What one document says about a question, as verbatim passages and a summary

query_financials(company, queries, bias?)

Reported figures and consensus estimates by metric and period

get_financial_statements(company, statement?, periods?)

A whole statement, every line in order. Without statement, the list of statements

get_financial_provenance(company, datapoints)

The document and line each figure came from, or a computed figure's inputs

Every tool that takes a company takes a ticker or company id; find_company gets one from a name. Document ids such as fd:k7qm2xp stay valid, so you can keep them and pass them back to read_document. The financials tools cite figures with the same ids.

Every answer is a normal Marvin chat turn and is billed to your organisation's wallet the same way. search_documents, explore_document and query_financials are billed $0.03 per successful call; see GET /v1/pricing.

Long answers. An answer often takes a few minutes. MCP clients give up on a tool call long before that, so ask_marvin starts the answer in the background and waits for up to 50 seconds, reporting progress while it waits. If the answer isn't ready by then, the model calls get_response until it is. Clients that support MCP tasks (protocol 2026-07-28, such as Claude Code) get ask_marvin as a task instead: the call returns at once and the client collects the answer when it is done.

Tables and charts. Answers can contain tables and charts, written as JSON in ```financial-table and ```echarts blocks that the Marvin app renders. An answer lists them under figures. In Claude (web, desktop and mobile) and ChatGPT, the model calls show_figure and the table or chart appears in the conversation with its sources, drawn by the Marvin app's own renderer. Elsewhere, get_format_guide explains how to turn the blocks into markdown tables, or into charts if the client can draw them.

Client identification. Each request to the Marvin API sends User-Agent: marvin-mcp/<version> and the name of the tool that made it (X-Marvin-Client-Tool), so Marvin can see which tools are used. The server collects nothing else and sends no telemetry of its own.

Fallback: run it locally

NOTE

Use this only if your MCP client can't connect to a remote server, or to point a client at another environment. Otherwise,connect to the hosted server.

The same server can run on your machine over stdio. It still calls the Marvin API over the internet, and it needs an API key instead of a sign-in.

You need:

  1. An API key. In the Marvin app: Account → API keys → Add new key.

  2. uv (curl -LsSf https://astral.sh/uv/install.sh | sh).

Then, from the project you want Marvin in, run:

uvx --from git+https://github.com/Marvin-Labs/marvin-mcp marvin-mcp setup

Setup asks for your API key, checks that it works, and adds Marvin to the clients it finds. By default that covers this project only:

Client

setup (this project)

setup --global (all projects)

Claude Code

yes, private to you (not in .mcp.json)

yes

Codex, CLI and app

yes, in .codex/config.toml, kept out of git. Codex loads it once you trust the project

yes

Claude Desktop

no per-project setting

yes

ChatGPT desktop

no per-project setting

prints the values to paste into its settings

Setup options:

  • Run setup again to change the key.

  • --yes sets up every client found without asking.

  • MARVIN_API_KEY in the environment skips the key prompt.

  • --api-url points the clients at another environment, such as stg.

By hand

Any MCP client that starts local (stdio) servers works:

  • Command: uvx.

  • Arguments: --refresh --from git+https://github.com/Marvin-Labs/marvin-mcp marvin-mcp.

  • Environment: MARVIN_API_KEY set to your key.

For example:

claude mcp add marvin --env MARVIN_API_KEY=mk_live_... \
  -- uvx --refresh --from "git+https://github.com/Marvin-Labs/marvin-mcp" marvin-mcp
codex mcp add marvin --env MARVIN_API_KEY=mk_live_... \
  -- uvx --refresh --from "git+https://github.com/Marvin-Labs/marvin-mcp" marvin-mcp

Claude Desktop on macOS does not see your shell's PATH, so give it the full path to uvx (which uvx).

--refresh fetches the latest version each time your client starts the server. To stay on one version instead, drop --refresh and pin a commit: git+https://github.com/Marvin-Labs/marvin-mcp@<sha>.

Configuration

Variable

Default

MARVIN_API_KEY

(required)

Your Marvin API key

MARVIN_API_URL

https://app-api.marvin-labs.com

Another environment, such as stg or a local API (http://localhost:<port>)

MARVIN_WAIT_SECONDS

50

How long one ask_marvin or get_response call waits for an answer

MARVIN_APP_URL

https://app.marvin-labs.com

The Marvin app that draws show_figure's tables and charts

Development

uv run pytest
MARVIN_API_KEY=mk_live_... MARVIN_API_URL=http://localhost:<port> uv run marvin-mcp   # stdio

To try a change in real clients before it is published, run setup from your checkout with --source. The clients then start the server from your checkout too. Add --api-url for stg or a local API.

uvx --from <checkout> marvin-mcp setup --source <checkout>

uv rebuilds the checkout whenever a file under src/ changes ([tool.uv] cache-keys in pyproject.toml), so the next run and the next client restart pick up your edits. To switch back to the published version, run setup again without --source.

This repository is published automatically from Marvin Labs' main codebase, where the client is maintained, and every release replaces it. Changes made here are overwritten, so it does not take pull requests.

Licence

MIT, see LICENSE.

Available Tools

5 tools
ask_marvinA

Ask Marvin a question; returns its answer, or a response_id to poll.

Inputs: question (required), conversation_id. Returns: object

cancel_responseB

Stop an answer that is still running.

Inputs: response_id (required). Returns: object

get_conversationC

A conversation's questions and answers, oldest first.

Inputs: conversation_id (required), limit, cursor. Returns: object

get_responseC

Wait a little longer for an answer that ask_marvin left running.

Inputs: response_id (required). Returns: object

list_conversationsB

Your Marvin conversations, most recently updated first, including ones from the app.

Inputs: limit, cursor. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct action: ask_marvin initiates a question, get_response polls an async answer, cancel_response stops a running answer, list_conversations enumerates conversations, and get_conversation retrieves a specific conversation's history. There is no overlap in purpose, and the async lifecycle is cleanly split between ask and poll.

    Naming Consistency4/5

    All names use snake_case and follow a verb_noun pattern (get_response, cancel_response, list_conversations, get_conversation). ask_marvin is a minor deviation because it names the assistant rather than a resource type, but it remains clear and consistent overall.

    Tool Count5/5

    Five tools neatly cover the core operations—asking, polling, cancelling, listing, and retrieving—without redundancy. This is well within the typical 3-15 range for a focused assistant server.

    Completeness4/5

    The set provides complete coverage of the primary response and conversation lifecycle. Minor gaps like deleting or renaming conversations exist, but agents can work around them for most workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides LLM clients with market intelligence tools over stdio, including market snapshots, price history, sentiment scoring, evidence search, and research briefs, with saved-run resource access.
      AGPL 3.0
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables natural-language financial research across SEC filings, earnings transcripts, financial metrics, stock and crypto market data, stock news, and prediction markets, returning structured, source-backed answers within MCP clients.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables natural-language research and analysis across public filings, earnings calls, financial metrics, stock and crypto data, news, and prediction markets with structured, source-backed answers in MCP clients.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables natural-language financial research and analysis across public filings, earnings transcripts, financial metrics, stock and crypto market data, and prediction markets, returning structured, source-backed answers within MCP clients.
      -