Skip to content

API & MCP Server

ThoughtFree provides a public REST API and an MCP (Model Context Protocol) server for integrating with AI assistants and external tools.

Generate API keys in Settings > API Keys:

  1. Click Create API key and give it a name
  2. Copy the key immediately — it’s only shown once
  3. You can have up to 5 active keys
  4. Each key shows its creation date and last-used timestamp

Keys can be revoked at any time from the same settings page.

All API requests use Bearer token authentication:

Terminal window
curl https://app.thoughtfree.io/api/v1/thoughts \
-H "Authorization: Bearer tf_YOUR_API_KEY"
MethodEndpointDescription
GET/api/v1/thoughtsList thoughts with pagination
POST/api/v1/thoughtsCreate a new thought
GET/api/v1/thoughts/:idGet a specific thought
PATCH/api/v1/thoughts/:idUpdate a thought
DELETE/api/v1/thoughts/:idSoft-delete a thought
POST/api/v1/thoughts/:id/restoreRestore a deleted thought
GET/api/v1/categoriesList all categories
GET/api/v1/statsUsage statistics
POST/api/v1/searchFull-text search
POST/api/v1/brainSemantic/vector search (Pro)

MCP Server (Claude Desktop, VS Code, Cursor)

Section titled “MCP Server (Claude Desktop, VS Code, Cursor)”

The MCP server lets AI assistants like Claude read and write your thoughts directly. There are two ways to connect.

No installation needed — connect directly through OAuth:

  1. In your AI tool, add a custom MCP connector
  2. Use the URL: https://app.thoughtfree.io/api/mcp
  3. Sign in with your ThoughtFree account when prompted

Works with Claude Desktop and claude.ai.

For Cursor, VS Code, or custom setups:

  1. Generate an API key in Settings > API Keys
  2. Add the following to your MCP configuration:
{
"mcpServers": {
"thoughtfree": {
"command": "npx",
"args": ["-y", "@thoughtfree/mcp-server"],
"env": {
"THOUGHTFREE_API_KEY": "tf_YOUR_API_KEY"
}
}
}
}

The config file location depends on your tool:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  • Cursor: .cursor/mcp.json in your project
  • VS Code: .vscode/mcp.json in your project

Tools (what AI can do):

  • Search, create, list, update, and delete thoughts
  • Semantic search across your thought library
  • List categories and get usage stats

Resources (what AI can read):

  • thoughtfree://recent — your recent thoughts
  • thoughtfree://starred — your starred thoughts
  • thoughtfree://category/{key} — thoughts by category

Once connected, try asking Claude:

  • “What did I capture this week?”
  • “Create a thought about the meeting notes from today”
  • “Search my thoughts for anything about project deadlines”
  • “Summarize my starred thoughts”