How to connect Mathpix to Claude in 2 mins: No API key needed

You can turn an equation photo into LaTeX, turn a table screenshot into a spreadsheet table and type up handwritten math notes from Claude. Composio runs each call on its own Mathpix account, so you don't need a Mathpix API key, and your first $2 is free.

MathpixInstant · No API key

Claude runs Mathpix through Composio, and the cost comes out of your free $2.

  • LaTeX from an equation image$0.002
  • A table from a screenshot$0.002
  • Math from handwriting strokes$0.002

$2 ≈ 1000 images

Composio Instant

What you can do with your free $2

What your free $2 gets you with Mathpix
When you ask Claude forClaude uses this toolCostWhat $2 gets you
LaTeX from an equation imageOCR Image$0.002 per imageAbout 1,000 images
A table from a screenshotOCR Image$0.002 per imageAbout 1,000 images
Math from handwriting strokesRecognize Strokes$0.002 per requestAbout 1,000 requests

You pay Mathpix's price for each call with 0% markup, plus the regular Composio tool call charge. There's no Mathpix subscription, and you only pay for what you use.

2 of 28 Mathpix tools work without a key. For Convert Mathpix Markdown, Create App Token, Delete Conversion, Delete Document, Delete File, Finalize File Job and 20 more, connect your own Mathpix key. Read how Instant works.

How it works

How to connect Mathpix to Claude

Composio adds Mathpix to Claude as an Instant toolkit. You connect Composio to Claude once, and then Claude can use Mathpix right away. There are two ways to do this:

  • Bring your own key

    You bring your own Mathpix API key, set it up, and use it.

  • Use the Composio wallet

    Instant

    Composio runs each call on its own Mathpix account, so you don't have to set anything up at Mathpix, and your first $2 is free.

You do the setup one time and it takes about a minute. If you build Mathpix into your own product, turn on Instant toolkits in your project settings so your agent can call Mathpix for each of your users without a Mathpix API key, and read Instant tools in the Composio docs for the setup steps and code examples.

Get started

Start to use Mathpix in Claude in 3 steps

  1. Turn on Instant

    Open your Composio wallet and turn on Instant. Your free $2 shows up there.

  2. Add Composio to Claude

    Follow the setup below. You only do this once.

  3. Ask Claude for something

    Try a Mathpix prompt. The cost comes out of your $2.

Setup

Connecting Mathpix to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your Mathpix account

Back in Claude, ask it to connect to Mathpix or give it any Mathpix-related task.

For example, ask Claude to:

  • "Extract LaTeX from equation image"
  • "Parse photographed table into CSV"
  • "Summarize handwritten notes from photo"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your Mathpix account is ready to use.

Try it

Ask Claude for something with Mathpix

Start a new chat and try this prompt:

Convert the equation in this image to LaTeX I can paste into my paper: [image URL].

Claude runs it on Instant and shows you the result. It doesn't ask you for a Mathpix key, and the cost comes out of your $2. You can see each call in your wallet.

Optional: connect your own Mathpix key

If you want Convert Mathpix Markdown, Create App Token, Delete Conversion, Delete Document, Delete File, Finalize File Job and 20 more, you need your own key. Ask Claude to connect your Mathpix account, and it gives you a Composio link:

Connect my Mathpix account using Composio.

Open the link, paste your Mathpix API key and click Connect Account. You can get a key from Mathpix Console. After that, Composio uses your key first and doesn't charge Instant for those calls.

Starter prompts

Use your first $2: copy a prompt into Claude

Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.

  • Turn an equation photo into LaTeX

    Less than $0.01

    Reads a photo or screenshot of an equation and gives you LaTeX you can paste into a paper or doc.

    Convert the equation in this image to LaTeX I can paste into my paper: [image URL].

  • Turn a table screenshot into a spreadsheet table

    Less than $0.01

    Reads a table from an image and gives it back as rows and columns you can paste into a spreadsheet.

    Read the table in this screenshot and give it back as CSV I can paste into a spreadsheet, keeping any math in the cells as LaTeX: [image URL].

  • Type up handwritten math notes

    About $0.01

    Turns photos of handwritten notes into editable text, with the math in LaTeX.

    Type up my handwritten lecture notes from these photos into Markdown, with every equation in LaTeX: [paste up to 5 image URLs].

  • Make an editable copy of a worksheet

    About $0.02

    Pulls the questions from photos of a printed worksheet or textbook page into editable text.

    Pull every question from these worksheet pages into an editable numbered list, with the math in LaTeX: [paste up to 10 image URLs].

  • Read handwriting from a drawing app

    Less than $0.01

    Turns pen strokes captured in your app into LaTeX or text, with no image needed.

    Here are the x and y stroke coordinates captured from my drawing app: [paste x_coordinates and y_coordinates]. Recognize the handwritten math and give me the LaTeX.

What it can do

What Claude can do with Mathpix

Works without a key

  • LaTeX from an equation image
  • A table from a screenshot
  • Math from handwriting strokes

Needs your own Mathpix key

  • Convert Mathpix Markdown
  • Create App Token
  • Delete Conversion
  • Delete Document
  • Delete File
  • Finalize File Job
  • Get App Token
  • Get Conversion Result
  • and 18 more
Tools and prices

Supported tools (28)

Mathpix tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
OCR ImageExtract text, math, tables, diagrams, or chemistry from one image URL or base64 data URI and return the requested OCR representations.Yes$0.002 per image OCR request
Recognize StrokesRecognize handwritten math or text from aligned x/y digital-ink stroke arrays and return OCR representations.Yes$0.002 per non-session digital-ink request
Convert Mathpix MarkdownSubmit Mathpix Markdown, wait for one requested format to finish, then return the conversion ID and downloadable output file.Needs your own keyBilled to your own Mathpix key
Create App TokenMint a short-lived client OCR credential, optionally with a live ink strokes session.Needs your own keyBilled to your own Mathpix key
Delete ConversionPermanently delete one Mathpix Markdown conversion's hosted output data after explicit confirmation.Needs your own keyBilled to your own Mathpix key
Delete DocumentPermanently delete one Mathpix document source and its hosted outputs after explicit confirmation.Needs your own keyBilled to your own Mathpix key
Delete FilePermanently delete one terminal Files API file and its Mathpix-hosted results.Needs your own keyBilled to your own Mathpix key
Finalize File JobPermanently close one Files API job to new file additions and arm its completion webhook.Needs your own keyBilled to your own Mathpix key
Get App TokenGet expiry and ownership metadata for a specific short-lived Mathpix app token.Needs your own keyBilled to your own Mathpix key
Get Conversion ResultWait for an existing Mathpix Markdown conversion and requested format to finish, then return its status and downloadable output file without creating a conversion.Needs your own keyBilled to your own Mathpix key
Get Document ResultWait for an existing Mathpix document job and requested format to finish, then return its status and downloadable output file without creating a new job.Needs your own keyBilled to your own Mathpix key
Get File JobGet aggregate status, file and page counters, and timestamps for one Files API job.Needs your own keyBilled to your own Mathpix key
Get File ResultWait for an existing Files API file and selected format to finish, then return its status and downloadable output without creating a file.Needs your own keyBilled to your own Mathpix key
Get Job File by Custom IDGet the complete Files API processing status for one job member using the exact caller-defined custom ID assigned at submission.Needs your own keyBilled to your own Mathpix key
Get OCR UsageReturn one page of aggregated Mathpix OCR usage for a date range, optionally grouped by usage type, request configuration, or application.Needs your own keyBilled to your own Mathpix key
Get Storage Onboarding IdentitiesGet the Mathpix AWS, Azure, and GCP identities needed to grant cloud-storage access.Needs your own keyBilled to your own Mathpix key
List ConversionsList one page of retained Mathpix Markdown conversion records, optionally filtered by date, and return IDs usable by conversion result or deletion tools.Needs your own keyBilled to your own Mathpix key
List Data SourcesList cloud-storage data sources registered with Mathpix, returning only allowlisted non-secret metadata.Needs your own keyBilled to your own Mathpix key
List DocumentsList retained document OCR jobs for the connected account, optionally filtered by date or document ID, and return one page.Needs your own keyBilled to your own Mathpix key
List File Job FilesList one cursor-paginated page of files in a Mathpix Files API job, optionally filtered by member status.Needs your own keyBilled to your own Mathpix key
Show all 28 tools
More Mathpix tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
List File JobsList one cursor-paginated page of Files API jobs newest first, optionally bounded by inclusive UTC dates.Needs your own keyBilled to your own Mathpix key
OCR DocumentSubmit a PDF, office document, or ebook URL, wait for OCR and the requested conversion to finish, then return its Mathpix job ID and downloadable output file.Needs your own keyBilled to your own Mathpix key
Process File URISubmit one public or registered-cloud document URI to the paid Files API, wait for OCR and one requested output, and return the retained file ID and downloadable result.Needs your own keyBilled to your own Mathpix key
Process Image BatchSubmit a paid asynchronous batch of 1-100 named public image URLs, wait until every key has a semantically successful OCR result, and return the retained batch ID and results.Needs your own keyBilled to your own Mathpix key
Revoke App TokenIrreversibly revoke one short-lived app token immediately.Needs your own keyBilled to your own Mathpix key
Search OCR ResultsSearch retained image and stroke OCR history by date, identifiers, content, tags, or detected content and return one page of results.Needs your own keyBilled to your own Mathpix key
Submit File JobSubmit up to 200,000 remote documents in a paid asynchronous Mathpix Files job, subject to a 10 MB encoded request limit.Needs your own keyBilled to your own Mathpix key
Upload and Process FileUpload one local document to the paid Mathpix Files API, wait until OCR and one requested output are ready, then return the retained Mathpix file ID and a downloadable result.Needs your own keyBilled to your own Mathpix key
Pricing

How you pay for Mathpix

  • Your first $2 is freeIt's added to your Composio wallet when you turn on Instant.
  • You pay for each callYou pay Mathpix's price with 0% markup, plus the regular Composio tool call charge.
  • Your own key comes firstIf you connect your own Mathpix key, Composio uses it and doesn't charge Instant for those calls.
  • You control the costYou can ask your agent to check with you before each paid call, and you can turn Instant off at any time.
  • You can see each callYour wallet shows each call and what it cost.
  • When your balance runs outYou can add funds to your wallet on a Pro plan or connect your own key.
Help

Troubleshooting

  1. 1. Claude asks me for a Mathpix API key

    You may have asked for something that needs your own key, like Convert Mathpix Markdown, Create App Token, Delete Conversion, Delete Document, Delete File, Finalize File Job and 20 more. Those tools don't run on Instant. For everything else, check that Instant is turned on in your Composio wallet, then ask again.

  2. 2. I can't see my free $2

    Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.

  3. 3. A Mathpix call failed with a balance error

    Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Mathpix key, then try again.

  4. 4. Why does Claude not use the Composio connector for Mathpix?

    The connector can show as connected, but Claude must use it in each Mathpix conversation.

    • Click + at the lower left of the chat, or type /.
    • Hover Connectors.
    • Turn on Composio.
    • Ask Claude to connect to Mathpix again.
  5. 5. Why does Claude show an MCP server error before Mathpix connects?

    Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for Mathpix.

    • Check that the connector URL is https://connect.composio.dev/mcp.
    • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
    • Add the connector again from Customize > Connectors, then ask Claude to connect Mathpix.
    • If it fails again, send the error and the ofid_ reference id to support@composio.dev.
  6. 6. Why does the Mathpix authorization link not work?

    The Composio connector is one server. Your Mathpix account connects separately when Claude asks for it.

    • If the browser does not open, or the link expires, ask Claude to retry the Mathpix connection.
    • Composio creates a fresh Mathpix authorization link.
    • Open that link in your browser and finish the Mathpix sign-in.
  7. 7. Why do Mathpix actions fail after they worked before?

    The Mathpix connection can expire or lose permission.

    • Ask Claude to inspect the Mathpix connection.
    • If the connection is unhealthy, disconnect it when Claude prompts you.
    • Reconnect the Mathpix account and retry the action.
    • If Claude shows a permission prompt, approve it before Claude changes data in Mathpix.
    • If the action still fails with a permission error, check that the connected account has that permission in Mathpix itself.
  8. 8. How do I switch to a different Mathpix account?

    Claude can manage the Mathpix connection for you.

    • Ask Claude to disconnect or delete the current Mathpix account.
    • Ask Claude to connect Mathpix again.
    • Open the new Composio authorization link for Mathpix.
    • Sign in with the other Mathpix account in the browser.
    • After the account connects, ask Claude to retry the Mathpix task.
  9. 9. Why is my Mathpix connection missing in Claude Desktop or on a Team plan?

    The connector belongs to your Claude account, so your Mathpix connection works in Claude Web, Desktop, and Cowork.

    • In Claude Desktop, open Customize > Connectors.
    • Next to Composio, click ⋮ and click Clear cache.
    • If Mathpix tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
    • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect Mathpix.
FAQ

Frequently asked questions

Start with Mathpix.It takes 30 seconds.

New accounts get a one-time $2 starter credit for Instant calls.Run Mathpix from your agent with no Mathpix key.

Get $2 starter credit