Use the Docs with AI Assistants

Connect Claude, Cursor or VS Code to the Astrada docs so your assistant can search the guides, read the API reference and run sandbox calls as you build.

For: developers

These docs run an MCP server at https://docs.astrada.co/mcp. MCP (Model Context Protocol) is the standard way AI assistants such as Claude, Cursor and GitHub Copilot in VS Code reach outside tools. Once you connect it, your assistant can search these guides, read the API reference and, with your sandbox token, send requests to the sandbox, so its answers come from the published docs rather than from memory.

This page is about building your integration with an AI assistant. For AI agents that run on the transaction data itself, see Use Cases.

The server is public and needs no sign-in to add. Searching and reading the docs changes nothing; execute-request sends real requests that can create and delete test data in your sandbox.

Connect your assistant

Use the address https://docs.astrada.co/mcp in every client. The name (astrada-docs below) is yours to choose.

Claude Code

Run this in your project folder:

claude mcp add --transport http astrada-docs https://docs.astrada.co/mcp

To share it with everyone who works in the repository, add --scope project, which writes the server into the project's .mcp.json for you to commit:

claude mcp add --transport http --scope project astrada-docs https://docs.astrada.co/mcp

Run /mcp inside Claude Code to check that it shows as connected.

Claude Desktop and claude.ai

  1. Open Customize > Connectors.
  2. Choose + Add, then Add custom connector.
  3. Enter a name, such as Astrada docs, and the address https://docs.astrada.co/mcp.
  4. Under Authentication, choose No sign in, then Add.
  5. In a chat, open the + menu and turn on the server you named in step 3.

On a Team or Enterprise plan, an owner adds the server once in Organization settings, and each member then turns it on with Connect in their own Customize settings. The desktop app's claude_desktop_config.json file is for servers that run on your computer, so this server is not added there.

Cursor

Add the server to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project:

{
  "mcpServers": {
    "astrada-docs": {
      "url": "https://docs.astrada.co/mcp"
    }
  }
}

VS Code

Add the server to .vscode/mcp.json in your workspace, or run MCP: Add Server from the Command Palette, choose HTTP and enter the address:

{
  "servers": {
    "astrada-docs": {
      "type": "http",
      "url": "https://docs.astrada.co/mcp"
    }
  }
}

Newer VS Code releases also read a .mcp.json file at the workspace root. There the key is mcpServers and each entry has "type": "http" and "url", the same shape Claude Code writes.

What the assistant can do

The server currently gives your assistant seven tools. You do not call them yourself; the assistant picks them from your question.

ToolWhat it does
searchSearches the guides and reference pages. It returns each page's id, title and address, so the assistant then reads the pages it needs.
fetchReads one page in full, as text, from an id that search returned.
list-specsLists the API definitions, currently two: Astrada API and Astrada Banking API.
list-endpointsLists every path and method in one API definition.
search-endpointsFinds endpoints whose path, summary or parameters match a word.
get-endpointReturns one endpoint in full: parameters, request body, responses, scopes and server.
execute-requestSends a request to the sandbox API and returns the response.

Sandbox requests only

execute-request only calls the server named in the published API definition, which is the sandbox, https://api.sandbox.astrada.co, and only with a token you give it. Without a token it returns an error that names the authorization it needs.

  1. Get sandbox credentials. Sign up at astrada.co/sandbox with your work email.

  2. Get a token from your own terminal, as shown in Sandbox Environment, so your client secret never goes into the chat. Do not ask the assistant to get it through execute-request. A token lasts 5 minutes.

  3. Paste the token into the chat and ask for the call. The assistant sends it in the request's Authorization: Bearer header. For example:

    Here is my Astrada sandbox token: YOUR_ACCESS_TOKEN. Use execute-request to list my subaccounts.

    When a call answers 401, the token has usually run out or was not pasted whole: get a new one and paste it again.

A token you paste goes from the chat to your assistant's provider, then to the docs server at docs.astrada.co/mcp, which sends the request to the sandbox. Try It on an API reference page is different: the token goes straight from your browser to the sandbox. Treat a pasted token as shared with every service on that path, and as able to do whatever your API client's scopes allow, including any write scopes it holds.

Use sandbox credentials only. Never paste production credentials or a production token into an assistant, and never write a token into .mcp.json or any other file you commit. A token you paste stays in that chat's history, so start a new chat when you are done. Many assistants ask before they run a tool that can change data: keep that on for execute-request rather than allowing it always, and read each request before you allow it.

Tools without MCP

If your assistant or editor cannot add an MCP server, give it the docs as text:

  • The site index: docs.astrada.co/llms.txt lists the published guides and reference pages, with a link to the text version of each.
  • One page as text: add .md to the end of any page address. For example, https://docs.astrada.co/docs/authentication.md returns the Authentication page as Markdown. Paste it into a chat, or point a tool that reads web pages at it.

Example prompts

These came back with the right page first in our tests:

Using the Astrada docs, how do I verify the signature on an Astrada webhook? Give the header names and the string that is signed.
Which Astrada sandbox test cards give a Mastercard 3DS challenge, and which verification states does each go through?
How do I simulate an authorization and then a settlement on a test card I enrolled in the Astrada sandbox?

Name Astrada in the question, so the assistant knows to use the docs server rather than its own memory or another tool.

Things to know

  • Answers follow the published site. If a page changes, the assistant reads the new version on its next search. It does not read pages that have not been published.
  • Search matches page wording. search works best with a few plain words, such as "webhook signature" or "delete card". If it finds nothing useful, ask the assistant to try other words or to read llms.txt and pick the page from there.
  • Sandbox-only calls have their own guides. Simulating transactions and bulk deliveries is described in Sandbox API Reference, and the sandbox deletes in Sandbox Environment. list-endpoints and get-endpoint cover the calls in the published API reference; where it lists one of these calls, its name ends in "(sandbox only)". Ask the assistant to read the guide before it runs one of these calls.
  • Check what it writes. An assistant can still misread a page. Before you ship code it wrote, open the page it cites and compare.

Related


Did this page help you?