REST API & MCP

API Documentation

Everything you need to integrate CuryLoop into your workflows. Authenticate with API keys, manage groups and sessions, and connect via MCP for AI-powered access.

Use CuryLoop as an MCP (Model Context Protocol) server to manage your knowledge base directly from AI assistants like Claude.

MCP Integration

CuryLoop exposes an MCP-compatible server that lets you interact with your groups, sessions, and items directly from AI assistants like Claude Desktop, Claude Code, Cursor, and other MCP clients.

Quick Setup

Claude Desktop

Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{
  "mcpServers": {
    "curyloop": {
      "type": "streamable-http",
      "url": "https://curyloop.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Claude Code

Run this command in your terminal:

bash
claude mcp add curyloop \
  --transport http \
  --url https://curyloop.com/api/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Cursor

Add to your .cursor/mcp.json:

json
{
  "mcpServers": {
    "curyloop": {
      "type": "streamable-http",
      "url": "https://curyloop.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Replace YOUR_API_KEY with an API key from Settings > API Keys.

Available Tools

ToolDescription
list_groupsList all groups you're a member of
list_sessionsList active/draft sessions in a group
list_itemsList all items in a session
add_itemAdd a new link/article/repo to a session
search_itemsSearch items across all your groups

Usage Examples

Once configured, you can use natural language with your AI assistant:

  • "Show me my CuryLoop groups"
  • "List the sessions in my Engineering group"
  • "Add https://github.com/vercel/next.js to our current session"
  • "Search for articles about TypeScript in CuryLoop"

Tool Details

list_groups

No parameters required. Returns all groups with your role.

list_sessions

ParameterTypeRequiredDescription
groupIdstringYesThe group ID

list_items

ParameterTypeRequiredDescription
sessionIdstringYesThe session ID

add_item

ParameterTypeRequiredDescription
sessionIdstringYesTarget session ID
groupIdstringYesGroup ID
urlstringYesURL to add
titlestringNoCustom title (auto-extracted if omitted)
descriptionstringNoYour notes
prioritystringNolow, medium, or high (default: medium)

search_items

ParameterTypeRequiredDescription
querystringYesSearch query

Authentication

The MCP server uses the same API key authentication as the REST API. Include your key as a Bearer token in the Authorization header.

Endpoint

POST https://curyloop.com/api/mcp

The server implements the MCP JSON-RPC protocol (version 2025-03-26) over HTTP.