Skip to main content
Glama

AFFiNE MCP Server

by DAWNCR0W

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_WS_PORTNoHost port to expose for WebSocket transport7821
AFFINE_EMAILNoEmail for authentication (self-hosted)
AFFINE_COOKIENoSession cookie string (e.g., affine_session=<...>; affine_user_id=<...>)
MCP_TRANSPORTNoTransport mode: 'stdio' for stdio mode, or 'ws' for WebSocketws
AFFINE_BASE_URLNoBase URL of your AFFiNE server, e.g. http://affine.local:3010
AFFINE_PASSWORDNoPassword for authentication (self-hosted)
AFFINE_API_TOKENNoPersonal access token for Bearer auth
AFFINE_GRAPHQL_PATHNoGraphQL endpoint path/graphql
AFFINE_HEADERS_JSONNoOptional JSON of extra headers to send
AFFINE_WORKSPACE_IDNoDefault workspace id (optional). Tools also accept explicit workspaceId

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DAWNCR0W/affine-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server