MCP server
Marmot has a built-in Model Context Protocol server at https://<your-marmot-server>/api/v1/mcp. Point an AI assistant at it and the assistant can search your catalog, trace lineage, look up owners and glossary terms and read the knowledge your company has written down, with the same permissions as the identity it signs in with.
Before you start
- You have a Marmot API key. Create one under Account → API keys, or use a service account's key for an agent that runs on its own.
- You know your Marmot server's address. On Marmot Cloud it's
https://<instance>.marmotdata.cloud.
Connect a client
Add Marmot to your client's MCP configuration:
- Claude Code
- Claude Desktop
- Cursor
- Cline
- LibreChat
Add this to ~/.claude.json for every project, or to .mcp.json in a project's root for that project only:
{
"mcpServers": {
"marmot": {
"type": "http",
"url": "https://<your-marmot-server>/api/v1/mcp",
"headers": {
"X-API-Key": "<api-key>"
}
}
}
}
If you've signed in with marmot login, you can send "Authorization": "Bearer <token>" instead of X-API-Key. Claude Code asks you to approve a project's servers the first time it uses them.
Edit the configuration file for your platform:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"marmot": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://<your-marmot-server>/api/v1/mcp",
"--header",
"X-API-Key:<api-key>"
]
}
}
}
For a server on plain HTTP, such as a local one, add --allow-http to args.
Add this to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json in a project's root for that project only:
{
"mcpServers": {
"marmot": {
"url": "https://<your-marmot-server>/api/v1/mcp",
"headers": {
"X-API-Key": "<api-key>"
}
}
}
}
To keep the key out of the file, use ${env:MARMOT_API_KEY} in its place.
In VS Code, open Cline, select the MCP Servers icon, then Configure MCP Servers, and add Marmot to cline_mcp_settings.json:
{
"mcpServers": {
"marmot": {
"url": "https://<your-marmot-server>/api/v1/mcp",
"headers": {
"X-API-Key": "<api-key>"
}
}
}
}
Add Marmot to librechat.yaml:
mcpServers:
marmot:
type: streamable-http
url: https://<your-marmot-server>/api/v1/mcp
headers:
X-API-Key: <api-key>
timeout: 30000
To keep the key out of the file, use ${MARMOT_API_KEY} in its place.
Then ask the assistant something only your catalog knows, such as "who owns the orders table?". It should answer with a real owner and the asset it found.
Use a service account
An assistant that signs in with your API key has your permissions. An agent that runs on its own should have its own identity instead, so you can limit what it reaches and see what it did:
- Under Settings → Service accounts, select Create service account.
- Give it a role with
assets:view,glossary:viewandteams:view. - Create an API key for it and put that key in the client configuration.
Hosted clients
Clients can also sign in with OAuth instead of an API key. The client registers itself with Marmot and completes a browser sign-in, so there's nothing to set up for clients running on your own machine.
A hosted client such as claude.ai calls back to an https address, so add its host to the server configuration:
auth:
dcr:
allowed_redirect_hosts:
- claude.ai
The environment variable MARMOT_AUTH_DCR_ALLOWED_REDIRECT_HOSTS takes the same list, separated by commas. Hosts on this list receive sign-in codes for your Marmot server, so only add hosts you trust.
Each person sees the clients they've allowed under Account → Connected apps. Revoke signs one out straight away.
Tools
The server gives an assistant these tools:
| Tool | What it answers |
|---|---|
search | Searches assets, knowledge entries, glossary terms, data products and teams by words, kind, type, provider, tag or owner. Each result shows its owners, when it changed and whether it's stale, unowned or deprecated |
fetch | Reads anything by the id search returned, an MRN, a Marmot URL or an exact name, up to 10 at once. An asset comes with its owners, documentation pages, schema, lineage, data products and the knowledge that applies to it |
get_lineage | What feeds an asset and what depends on it, nearest first, with the edges between them |
search_knowledge | Finds policies, decisions, runbooks, incidents, guides, references, facts, brand voice, writing styles and design systems by words or kind, or every entry that applies to a repository, service or table |
read_knowledge | Reads one knowledge entry in full: status, owners, details, what it covers and its write-up |
create_knowledge | Saves something to knowledge as a draft, after showing a preview the user approves |
update_entity | Changes an asset's summary, tags, owners or glossary terms, or a term's definition, after showing a preview the user approves. Owners and terms are given by name |
list_queryable_sources, query_data | Runs a read-only SQL statement against a source whose pipeline is set up to answer queries; see data queries |
search and fetch also return structured results in the shape ChatGPT's company knowledge expects, so the same server works there.
Older tools stay available for integrations built on them: discover_data, find_ownership, lookup_term, explore_data_products, explore_teams, trace_lineage, and for writers update_documentation, manage_tags and manage_owners. Their descriptions point assistants to the newer tools, and they'll be removed in a later release.
The tools that change the catalog are only listed for identities with assets:manage. Each one shows a preview and changes nothing until it's called again with the preview's preview_id, which works only for the same change, by the same identity, within 30 minutes and while the entity is unchanged. An identity without assets:manage still gets every read tool.
The server also sends connected clients short instructions on which tool fits which question. They tell an assistant to check search_knowledge before it writes docs, copy, UI or code for your company, and to name the entries it relied on. An assistant that can save may offer once to save something worth keeping, and saves only after the user approves the preview. Entries saved this way start as drafts, and text that looks like a password or key is refused. Most clients pass these instructions to the model without any setup.
Next steps
- Knowledge: write down the policies and styles an assistant should follow.
- Skills: teach an agent the Marmot CLI and API as well.
- Marmot for agents: build your own agent on the catalog with LangChain or the Claude Agent SDK.