Skip to Content
Almetia Docs

REST API & MCP Server

Integrate Almetia with Claude, Cursor, Windsurf, or scripts using Personal Access Tokens.

Almetia exposes every operation across three consistent doors backed by a single tRPC router and scope registry:

  • REST API: https://api.almetia.com/v1/* (OpenAPI 3.1 spec at https://api.almetia.com/v1/openapi.json)
  • MCP Server: https://api.almetia.com/mcp (Streamable HTTP)
  • Web Portal tRPC: https://api.almetia.com/trpc

Authentication

Pass a Personal Access Token from app.almetia.com/settings in the Authorization header:

curl -H "Authorization: Bearer alm_pat_your_token" \
  https://api.almetia.com/v1/space/me

MCP configuration

Add Almetia to Claude Desktop, Cursor, or Windsurf:

{
  "mcpServers": {
    "almetia": {
      "url": "https://api.almetia.com/mcp",
      "headers": {
        "Authorization": "Bearer alm_pat_your_token"
      }
    }
  }
}

Common endpoints

Method & PathScopeDescription
GET /v1/space/mespace:readActive Space metadata and inbox slug
POST /v1/documents/save-urldocuments:writeIdempotently save a URL and enqueue caching
POST /v1/highlightshighlights:writeCreate a highlight on a document
GET /v1/brain/searchbrain:readHybrid full-text and semantic search
GET /v1/recall/dailyrecall:readDue FSRS recall cards
GET /v1/sync/pulldocuments:readDelta sync stream for desktop and mobile SQLite

On this page