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 athttps://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/meMCP 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 & Path | Scope | Description |
|---|---|---|
GET /v1/space/me | space:read | Active Space metadata and inbox slug |
POST /v1/documents/save-url | documents:write | Idempotently save a URL and enqueue caching |
POST /v1/highlights | highlights:write | Create a highlight on a document |
GET /v1/brain/search | brain:read | Hybrid full-text and semantic search |
GET /v1/recall/daily | recall:read | Due FSRS recall cards |
GET /v1/sync/pull | documents:read | Delta sync stream for desktop and mobile SQLite |