Getting started
Set up and deploy a working context layer your AI tools can read from and write to, in about fifteen minutes.
This guide helps you set up and deploy a working context layer your AI tools can read from and write to. It takes about fifteen minutes. You need a browser and the AI tool you already use, Claude or Codex.
Foundation comes in two ways. The hosted version runs on our infrastructure and is the fastest way for you to experiment and play with it. If you would rather run it on your own infrastructure, everything here applies once your deployment is up, and Self-hosting covers the setup.
Create your workspace
Create a workspace from midland.md and sign in with the link sent to your email. There are no passwords. You are the workspace’s first admin: you decide what it holds, and you invite the team when you are ready.
Connect it to your AI tool
Your workspace has one connector URL, shown when you sign in. It has the form
https://midland.md/api/mcp, and every host connects to it the same
way.
Claude.ai
Install the connector once in Claude.ai and it is available in every Claude surface on your account: the web, Claude Desktop, Cowork tasks and Claude Code.
- In Claude.ai, open Settings, then Customize.
- Add a Custom Connector.
- Name it
Midlandand paste your connector URL. - Leave Authentication and OAuth client as Claude detected them. Add no headers.
- Follow the sign-in flow and approve access.
- Restart Claude Desktop if it is open.
Codex
Codex reads its connectors from one configuration shared by the desktop app, the CLI and the IDE extension, so adding the workspace once makes it available in all three.
- Open Settings in the Codex desktop app, then MCP servers, then Add server.
- Name it
midland. The name becomes a key in Codex’s configuration file, so keep it lowercase with no spaces. - Set the transport to Streamable HTTP and paste your connector URL.
- Save, then choose Restart when Codex offers it.
- Codex marks the server as needing sign-in. Choose Authenticate and approve access in the browser.
Any other MCP client connects to the same URL; see Connector.
Build the context layer
A workspace is only useful once it holds what your team knows, and the quickest way to get there is to let your agent do the typing. Open a chat with the connector attached and paste one of the prompts from Building context. Each one starts from something you already have (a website, a document or your AI tool’s memory) and turns it into shared context.
Nothing is saved until you agree to it, and you can see the result straight away.
You do not need a team to start. Foundation is built for trying things on your own first: fill a workspace with what you know, ask your agent questions against it, and see whether the answers change. Invite people once they do.