Quickstart
Make a key, connect Minded to Claude, send a first prompt and read the reply.
Where will you reach Minded from?
Building it into your own code?The Minded SDK does the same from TypeScript.Open the SDK guide
Or let your agent do it
MINDED_API_KEY, then paste this into Claude Code, Codex or Cursor.Connect to Minded, an AI agent that works in my apps. Its MCP server is https://mcp.minded.com, with the header "Authorization: Bearer $MINDED_API_KEY" (read the key from the environment, never print it). Add it to your MCP settings, then call send_prompt with the text "Say hello and list the apps I connected" and a new clientId. Read the reply with read_chat, passing nextAfterSeq as afterSeq each time, until status is idle. If status is waiting_for_answer, show me the question and wait for my answer. Then show me Minded's reply.
Every step on one page
1. Make an API key
- In Minded, open Settings › Integrations › API keys.
- Press Create key.
- Name the key for what will hold it, for example
Claude Code. The name is what your Minded chats show as their source. - Leave Access as it is. A new key starts with Chats: Read and write and Usage: Read only, which is all this guide needs.
- Press Create key, then Copy.
Minded shows the key once. Keep it somewhere safe. If you lose it, revoke it and make a new one (API keys).
No Minded account yet? Sign up for Minded first. Sign-up ends on the API keys page.
2. Connect Minded
Minded's MCP server is https://mcp.minded.com. It takes your key as a bearer token, the same way the Minded HTTP API does.
Claude Code
In your terminal, set your key, pasted in place of your-key, then add Minded:
export MINDED_API_KEY="your-key"
claude mcp add --transport http minded https://mcp.minded.com \
--header "Authorization: Bearer $MINDED_API_KEY"To share the setup with a project without sharing the key, put this in the project's .mcp.json and set MINDED_API_KEY in each person's environment:
{
"mcpServers": {
"minded": {
"type": "http",
"url": "https://mcp.minded.com",
"headers": { "Authorization": "Bearer ${MINDED_API_KEY}" }
}
}
}Claude Desktop
Claude Desktop reaches a remote MCP server with a key through the mcp-remote bridge. In Claude Desktop, open Settings › Developer › Edit Config and add Minded to claude_desktop_config.json, with your key in place of YOUR_MINDED_API_KEY:
{
"mcpServers": {
"minded": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.minded.com", "--header", "Authorization:${MINDED_AUTH}"],
"env": { "MINDED_AUTH": "Bearer YOUR_MINDED_API_KEY" }
}
}
}Restart Claude Desktop. Minded shows in the list of tools.
ChatGPT
ChatGPT can't connect to Minded yet. ChatGPT's connectors sign in with OAuth or with no sign-in, and take no API key, while Minded's connector needs your key. Use Claude for now, or the Minded SDK from your own code.
3. Send a first prompt
Ask Claude to hand the work to Minded:
Ask Minded to write this week's support summary from last week's tickets.
It calls send_prompt. Sending a prompt is a write, so Claude may ask you to allow it first.
In Minded, a new chat appears in your Recents with the Claude mark. Its first message is your prompt, with your key's name as the source.
4. Read the reply
The outside agent calls read_chat. Each call waits up to 50 seconds for Minded to finish, then returns what Minded wrote so far. The same reply shows in the Minded chat.
How long to wait is the outside agent's call. If it stops waiting, Minded keeps working. Ask it to check Minded again, and it reads the rest from where it stopped.
Or paste this into your agent
An agent that can run commands and edit files (Claude Code, Codex, Cursor) can do steps 2 to 4 itself. Make the key first (step 1), set it as MINDED_API_KEY, then paste:
Connect to Minded, an AI agent that works in my apps. Its MCP server is https://mcp.minded.com, with the header
"Authorization: Bearer $MINDED_API_KEY" (read the key from the environment, never print it). Add it to your MCP
settings, then call send_prompt with the text "Say hello and list the apps I connected" and a new clientId. Read the
reply with read_chat, passing nextAfterSeq as afterSeq each time, until status is idle. If status is
waiting_for_answer, show me the question and wait for my answer. Then show me Minded's reply.From your own code
Any MCP client works. This sample uses the MCP TypeScript SDK.
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
const transport = new StreamableHTTPClientTransport(new URL('https://mcp.minded.com'), {
requestInit: { headers: { Authorization: `Bearer ${process.env.MINDED_API_KEY}` } },
});
const minded = new Client({ name: 'weekly-summary', version: '1.0.0' });
await minded.connect(transport);
// Each tool answers with one text part: a JSON object, or the refusal's words.
const call = async (name, args) => {
const result = await minded.callTool({ name, arguments: args });
if (result.isError) throw new Error(result.content[0].text);
return JSON.parse(result.content[0].text);
};
const { chatId } = await call('send_prompt', {
text: "Write this week's support summary from last week's tickets.",
clientId: crypto.randomUUID(),
});
let afterSeq = 0;
for (;;) {
const read = await call('read_chat', { chatId, afterSeq, waitSeconds: 50 });
for (const message of read.messages) if (message.from === 'minded' && message.text) console.log(message.text);
afterSeq = read.nextAfterSeq;
if (read.status !== 'working') break; // idle, or waiting_for_answer: Minded asked a question or an approval
}Next: Prompts and replies for every field, Questions and approvals for the statuses that need you.