Skip to content

Any MCP client

The MCP server itself: how a client discovers it, the two ways to authenticate, what a connected client sees, the ready-made config files, and the clients without a page of their own.

https://api.app.membase.com/mcp-http

One URL for every client. Streamable HTTP, JSON responses, with or without a trailing slash (both answer the same; what fails is a wrong path such as /mcp). The server speaks the current MCP specification and advertises its authorization the standard way, so a client that can add “a remote MCP server with OAuth” can add Membase without a special step. The SDK also ships a local stdio server, membase --local mcp (from membase-ai[local]); see the SDK quickstart.

OAuth consent, for the person’s own AI apps. An unauthenticated request answers 401 with WWW-Authenticate pointing at https://api.app.membase.com/.well-known/oauth-protected-resource/mcp-http (RFC 9728). The metadata names the authorization server and its registration endpoint; the client registers itself (RFC 7591) and runs the authorization code flow with PKCE, asking for the read scope or read write. The browser opens Membase’s consent screen, which offers the same choices as Create key: the access level, the Memories, Your profile, Writes go to when it may write to more than one Memory, and the expiry; Deny refuses. A client that asked only for read, or named no scope, can be approved at Read only. The client receives a token good for what was approved and nothing else, and the person can change that later on the app’s page in Connect.

A developer key in the header, for a client that can send a static header and a person who prefers a key they created:

Authorization: Bearer mbk_…

No consent round-trip; the key’s access level and reach apply, up to Full. An unknown, expired or revoked key gets 401 with WWW-Authenticate: Bearer error="invalid_token" on every request, initialize and tools/list included, so the client reports that it cannot connect or needs authentication rather than showing tools. The ready-made config files carry no header, so a key never ends up in a public file.

The tools are the memory API’s operations under their tool names, with the same arguments and the same answers as REST (API reference). No tool takes a Memory: reads cover every Memory the credential reaches, and a write lands in the Memory chosen under Writes go to (or the one text Memory it reaches). tools/list is filtered per caller and shows only what the credential holds. An AI app and a developer key at the same level get the same tools.

Level Tools offered
Read get_capabilities, search_memories, list_memories, get_memory, list_documents, get_document, list_media, get_media, search_media; list_profile_facts with Your profile on
Read & write plus add_memory, add_document; add_profile_fact with Your profile on
Full plus forget_memory, delete_document, delete_media; forget_profile_fact with Your profile on. Each needs confirm=true, and only a developer key’s confirm=true carries it out
a marketplace buyer’s credential get_capabilities and search_memories (and search_media when the Memory bought holds photos and videos), on the one Memory bought: matching passages, never the fact list or documents

The media tools are offered only when the credential reaches a Memory of photos and videos.

A call to a tool outside the caller’s list is refused as a tool error (HTTP 200, isError: true), not an HTTP status: This key’s access level does not allow this. when a Read connection calls a writing tool, tool ‘…’ is not in this agent’s capability profile when the tool is above the level otherwise. The REST API answers the same refusals with 403 unauthorized. A destructive tool called without confirm=true, or by an AI app at Full, gets a tool error whose text is a how sentence for the model to relay (no error code or details travel over MCP); nothing changed. get_capabilities names what the connection may do (actions), the Memories it reaches (memories) and the person’s standing rules (rules); there is no separate rules tool.

The protocol before this one had list_containers, memory_rules, get_profile, ask_agent, workflow_invoke, a container argument and the memory_* names. None of them is listed by tools/list, and a call under one is a tool error. A credential created under a retired name that has a successor (get_profile, ask_agent, agent_invoke, the memory_* names) keeps the current tool it stands for; list_containers, memory_rules and workflow_invoke have none, so a grant of only those reaches nothing. Over REST, a container field is refused like any unknown field.

A search is a turn inside the person’s memory. The first one after a quiet spell can take up to a minute; the answer names in partial any Memory that could not answer yet, and the model should say so rather than answer from nothing.

Use these published configuration files and references for your client:

File For
https://app.membase.com/plugin/mcp.json the server in the mcpServers shape most clients read
https://app.membase.com/plugin/clients/vscode.mcp.json VS Code’s servers shape
https://app.membase.com/plugin/clients/codex.toml Codex’s config.toml snippet
https://app.membase.com/plugin/membase-skill.zip the skill folder
https://app.membase.com/plugin/openapi/agent-protocol.json the OpenAPI document
https://app.membase.com/skill the skill’s SKILL.md with its install preamble

The clients with a page of their own are ChatGPT, Claude, Claude Code, Cursor, Codex, Grok and Kimi Code. Everything else takes the same URL. On Connect’s AI apps tab, VS Code and Devin Desktop (formerly Windsurf) also have a card with a step-by-step guide, and Any other AI app — manual MCP configuration has the config files.

Add to VS Code on the VS Code card opens VS Code with the server filled in; confirm it, then complete the trust and browser authorization prompts. By hand: run MCP: Add Server in the Command Palette, choose HTTP, paste the URL and name it membase. Or in .vscode/mcp.json:

{ "servers": { "membase": { "type": "http", "url": "https://api.app.membase.com/mcp-http" } } }

Then enable its tools with Configure Tools in chat.

Windsurf is now Devin Desktop, and its only agent is Devin Local (Cascade was removed in 3.9.19). Open Customize from the Agents window, select MCPs and add Membase with the URL, then select Authenticate to sign in. The Devin CLI does the same from a terminal:

Terminal window
devin mcp add --scope user membase https://api.app.membase.com/mcp-http
devin mcp login membase

Check with devin mcp list. Both write the user configuration, ~/.config/devin/mcp_config.json. On an enterprise team, the admin may restrict which MCP servers you can connect to.

Merge https://app.membase.com/plugin/mcp.json into the client’s configuration:

{ "mcpServers": { "membase": { "type": "http", "url": "https://api.app.membase.com/mcp-http" } } }

Claude Desktop’s claude_desktop_config.json is for local servers it launches itself; add Membase in Claude as a custom connector instead, as Claude describes.

Use the same URL. The server advertises OAuth discovery on a 401, accepts a bearer developer key in Authorization, and speaks Streamable HTTP. An agent framework without an MCP client can take SKILL.md as instructions and the REST API directly; MCP frameworks and AI coding tools have the shapes.

The AI apps tab on Connect lists every approved client, one row per approval, with its level, its Memories, its expiry and when it was last used. A client without a card of its own is listed there too, under the name it registered. A client’s page has its level (Access), the per-Memory switches (Memories it can use), Usage, Recent calls and Revoke…. Removing a connector inside the client may not notify Membase (the server offers a revocation endpoint, but few clients call it): revoke on Connect to be sure access has stopped. Revocation takes effect on the credential’s next call.