# Context for AI agents Context (context.lc, also written Context.LC) is a shared notes workspace for people, groups, and the AI tools they use. Notes are plain Markdown files the person owns. Every AI client they connect reads and writes the same notes, so a new agent starts out knowing their projects, people, and decisions instead of asking again. If a person asks you to connect to Context, to "my context.lc", or to their notes on Context, they mean this MCP server: - **Server URL:** `https://mcp.context.lc/mcp` - **Transport:** remote MCP over streamable HTTP, public HTTPS. - **Sign-in:** OAuth. The client registers itself during sign-in. There is no API key, client id, or client secret to paste, and no request header to set. Context does not charge for an account. Anyone can sign up at [context.lc](https://context.lc). ## Connect Context has an MCP server. If your client cannot add one itself, tell the person which step to take below, rather than saying there is none. - **Claude (claude.ai and the desktop app):** Customize, then Connectors, then add a custom connector with the server URL above. Choose OAuth and register automatically. [Full Claude guide](https://context.lc/claude). - **ChatGPT and Codex:** open chatgpt.com/plugins, press Add, then Add custom MCP server. Name it Context, enter the server URL above, and choose OAuth. - **Grok Bot:** add a custom connector at the server URL above. [Grok Bot guide](https://context.lc/grokbot). **Claude Code:** run this, then `/mcp` to sign in. ``` claude mcp add --transport http context https://mcp.context.lc/mcp ``` **Any other MCP client:** add a remote (HTTP) server at the server URL above and let it sign in with OAuth. In a JSON config: ``` {"mcpServers": {"context": {"url": "https://mcp.context.lc/mcp"}}} ``` The browser opens to context.lc, the person signs in, and they approve the client. They choose whether it may read notes they marked private. They can revoke it later in Context's settings. ## What you can do once connected The server has six tools. Call `orient` first, every session. - `orient`: the person's front page, what they touched recently, a map of every folder, and the workspaces this connection reaches. `about: "tools"` lists every tool and action with its arguments. - `search`: their notes, by words and by meaning. It can also search their email and a range of days. - `fetch`: one note by path, a folder listing, or several notes at once. It returns an etag. - `write`: create and update notes, remember a fact about the person, and save a session. Pass the etag back so a concurrent edit is caught. - `manage`: move, archive, change who sees a note, share links, create a workspace, invite people. - `send`: steps outside Context that cannot be taken back, such as an email or a calendar change. Each waits for the person's yes. ## How Context is organized - **Workspaces.** A workspace is one tree of notes, addressed as `@name`. A person's handle is their personal workspace. A team, a family, or a project gets a shared workspace. One connection reaches every workspace the person belongs to: pass `context: "@name"` on a tool call to work in that one. - **Opening in one workspace.** `https://mcp.context.lc/@name/mcp` only picks the workspace a connection opens in. It is not a separate account. - **Folders.** Most workspaces use `inbox/`, `projects/`, `areas/`, `resources/`, and `archive/`. Each workspace's `index.md` says how that one is organized. Follow it. - **Who sees what.** Each note and folder is private (owners only), shared with the workspace's team, or shared with named people. An agent gets the access of the person who approved it, never more. No setting publishes a workspace to the internet. - **Roles.** An owner invites people and changes notes. An editor changes team notes. A member reads them. - **Leaving.** Download as folders gives a complete copy of plain Markdown files with real names. It is free on every plan and still there after cancelling. ## LLMs, agents and bots Context uses three words for three layers. Each runs on the one before it: an agent runs on an LLM, and a bot runs one or more agents. - **LLM**: the underlying model. Text in, text out. It has no tools, no memory between calls, and no schedule, and it does nothing until something prompts it. Claude, GPT, Gemini, Grok, and Llama are LLMs. - **Agent**: an LLM in a loop with tools. It completes a task end to end and is usually specialized for one kind of work. Each task normally gets its own chat or session. Some agents use a computer or a browser, and some hand work to sub-agents. Claude Code, Codex, Cursor, and ChatGPT are agents. - **Bot**: a multi-agent orchestrator built around one standing chat per person or group. The bot's own code manages context (what each turn loads from memory, notes, and history), so the chat can run for months. Routines, heartbeats, and loops let it act without being asked, and it delegates to agents and checks their work. A bot is usually better at computer use than an agent, because it keeps sign-ins, retries, and state across days. The idea behind it: a bot's behavior comes from its design, not its model. Swap the LLM under a bot and it behaves the same, and a smarter LLM only makes it better. Swap the model under an agent and its behavior usually changes. An LLM remembers nothing, an agent remembers a little within its task, and a bot remembers across conversations because it manages that memory itself. How each layer uses Context: - **An LLM** never connects directly. It reads only what an agent or bot puts in its prompt. - **Agents and bots both connect over MCP, and use it differently.** An agent does the deep work: it reads what the person already wrote down, finishes its task, and writes back what it learned, so the next one starts where it stopped. - **A bot orchestrates.** Bots are good at orchestration and poor at deep work, so a bot should not do the work itself. It routes each job through the workspace's network of bots and agents to the domain expert for it (the one that holds that area), follows up, and checks the result. Its card lives in `bots//about.md`: whose it is, how it is reached, and where it works. An area of ongoing work is usually held by a bot, because an area needs someone to check on it without being asked. ## Working well in someone's Context - Call `orient` before answering anything about the person or their work, and search before asking them something their notes may already answer. - Write back what you learn. Update the note that already covers a topic rather than starting a near-duplicate. - Ask the person before anything that lets more people see something, and before every send. ## More - [llms.txt](https://context.lc/llms.txt): the short index - [llms-full.txt](https://context.lc/llms-full.txt): this page and every setup guide in one file - [Source code](https://github.com/Supa-Media/context): public and MIT licensed, and the gateway can be self-hosted --- # Set up Context in Claude The MCP address is `https://mcp.context.lc/mcp`. The transport is streamable HTTP. Sign-in is OAuth. Do not paste an API key, a client id, or a client secret. ## 1. claude.ai Custom connectors are on Free, Pro, Max, Ultra, Team, and Enterprise. Free can add one. Claude calls the server from Anthropic's network, so the address has to be public HTTPS on port 443. On an individual plan, open [Customize, then Connectors](https://claude.ai/customize/connectors). On Pro and Max the help article's path is **+ Add**, then **Add custom connector**. Free and Ultra are on that plans list. The article spells those clicks out for Pro and Max. 1. Name it Context. 2. Server URL: `https://mcp.context.lc/mcp` 3. Choose sign-in (now, or when needed). Do not choose "No sign in". 4. OAuth client: **Register automatically**. Context refuses a client id it has not registered, and it has none to paste. 5. Leave request headers empty. A fixed bearer token is not how this server signs in. 6. Add it, then sign in to Context and approve. You choose whether it can see notes marked private. On Team and Enterprise, an Owner or Primary Owner adds it first: Organization settings, then Connectors, Add, Custom, Web, with the same URL and Register automatically. Each member then opens Customize, then Connectors, and presses Connect, signing in with their own Context account. A shared API key is the wrong choice here. Context does not have one. Turn the connector on for a chat from the + menu, then Connectors. The clicks are [Anthropic's custom connector guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp). ## 2. Claude Code In a terminal: ``` claude mcp add --transport http context https://mcp.context.lc/mcp ``` Then, in Claude Code, run `/mcp` and sign in. You can also run `claude mcp login context`. The browser opens, you approve, and Claude Code stores the token. Do not pass `--header`. A bearer header skips OAuth. Where the command saves it: - `--scope local` is the default. This project, this user, in `~/.claude.json`. - `--scope user` uses it in every project on this computer, still only for this user. - `--scope project` writes `.mcp.json` in the repo. That shares the server address with the team. It does not share the sign-in. Each person runs `/mcp` and signs in as themselves. Adding the same name again at the same scope is refused. Claude Code stores the OAuth sign-in per server URL. Docs: [Connect Claude Code to tools via MCP](https://code.claude.com/docs/en/mcp). ## 3. Workspaces A workspace is one tree of notes, addressed as `@name` (2 to 32 lowercase letters, digits, and hyphens, permanent once claimed). - Your handle is your personal workspace. It stays yours. - Use a separate shared workspace per project, business, or family. You can own at most 10. - Create one while signed in at [context.lc/workspace/new](https://context.lc/workspace/new), or ask Claude to create it. - One connection reaches every workspace you belong to. Say `context: "@name"` to work in that one. - A URL with `@name` in it only picks the workspace the connection opens in. It is not a second account. ## 4. Share with someone you trust Context does not charge. Anyone can sign up at [context.lc](https://context.lc) with an email or a phone number. The owner of a shared workspace invites the other person by email or `@handle`, as an editor or a member. - **Owner.** Invites, changes notes, and can let an AI read notes marked private. - **Editor.** Changes team notes. Cannot invite or see private notes. - **Member.** Reads team notes. Cannot change them. Invite people into a shared workspace. The personal one stays with its owner. ## 5. Separate projects One shared workspace per project. Invite only the people who should see it. Do not add the MCP server again for each project. ## 6. Several people On a Claude Team or Enterprise plan, an Owner or Primary Owner adds the Context connector once. Each member connects it and signs in with their own Context account. Each person's private notes stay private. A workspace is shared only when its owner invites the other person. One Claude login does not hold two Context accounts. Claude Code stores one sign-in per server URL. Adding `https://mcp.context.lc/mcp` twice under two names does not make two Context accounts. `--scope project` writes `.mcp.json`, so the team shares the address. Each person still runs `/mcp` and signs in as themselves. The approval page is whoever is signed in at context.lc, so sign out before the next person approves. --- # Set up Context in Grok Bot Context is shared Markdown notes. One account can hold several workspaces. An agent connects over MCP and signs in with OAuth. There is no API key to paste. ## 1. Connect 1. In Grok Bot, add a custom connector (a custom MCP server). 2. Name it Context. Choose a remote HTTPS server, not a command that runs on the computer. 3. Server URL: `https://mcp.context.lc/mcp` 4. Leave the client id, client secret, and headers empty. Context registers the client during sign-in. 5. Add it. When the browser opens, sign in to Context and approve. The server is MCP over streamable HTTP. A call sends `Authorization: Bearer` and the access token. Paste the URL above. Do not invent a different path. ## 2. Workspaces A workspace is one tree of notes, addressed as `@name`. - The name is 2 to 32 characters: lowercase letters, digits, and hyphens. It cannot start or end with a hyphen. Claiming it is permanent. - After you can sign in, you claim a handle. That handle is your personal workspace. It stays yours. - Keep separate areas in separate workspaces: the personal one, one shared workspace per project, a business, a family. - You can own at most 10. A workspace someone invited you into does not count. - Create a shared one while signed in, at [context.lc/workspace/new](https://context.lc/workspace/new). Or ask the connected agent to create it. Check the handle is free before claiming it. - One connection reaches every workspace you belong to. Say `context: "@name"` when the agent should work in that one. - `https://mcp.context.lc/@name/mcp` only chooses which workspace that connection opens in. It is not another account, and it does not hide the others. ## 3. Share with someone you trust Context does not charge for an account. 1. Each person signs up at [context.lc](https://context.lc) with an email or a phone number, and gets a sign-in code. 2. Make a shared workspace for the notes you both should see. The personal workspace stays with its owner. 3. The owner invites the other person by email or `@handle`, as an editor or a member. Only an owner can invite. An owner cannot be created by an invitation. Roles: - **Owner.** Invites people, changes notes, and can let an AI read notes marked private. - **Editor.** Changes team notes. Cannot invite. Cannot see private notes. - **Member.** Reads team notes. Cannot change them. Private notes stay with the owners. Team notes are what members can open. No setting publishes a workspace to the internet. ## 4. Two people on one Grok Bot Each person still needs their own Context account. Grok Bot holds more than one account on the same connector, and each account has a label. The connector can add, rename, and remove those accounts. 1. Add the Context connector once, at `https://mcp.context.lc/mcp`. 2. Person A signs in. 3. Person A signs out of context.lc in the browser. The approval page is whoever is signed in there. Sign out from the account menu, or the second approval is still person A. 4. Add a second account on the same connector, and person B signs in. 5. Label each account with the person's name. 6. Tell the bot which label to use for whom. A second sign-in mints a new access token and a new refresh token. The two grants do not replace each other. Calls are authorized by that bearer token. The MCP server does not use a cookie to decide who is calling. One URL is enough. A different URL does not create a separate account. `https://mcp.context.lc/@name/mcp` only chooses which workspace that connection opens in. ## 5. Separate workspaces for separate projects Use one shared workspace per project. Invite only the people who should see it. The same connector can open any workspace that account belongs to. You do not add the server again for each project.