Cohere MCP server for AI agents

Live

BEARER TOKEN

LANGUAGE MODELS

AI

Cohere gives your agent language model tools in your Cohere account: generate chat responses, create embeddings, rerank documents by relevance, classify texts, tokenize and detokenize, and run embed jobs over datasets.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Cohere
agent · Acme Q3
Run
Rank these 5 support articles by how well they answer how to reset a password.
S
cohere_documents_rerank
380ms
Language model agent
Reranked the 5 articles. The password reset guide scored highest at 0.94 and the billing FAQ scored lowest.
Sources: Cohere Rerank, 5 documents
cohere
5 documents
18:29
Message Claude...

Tools your language model agent reaches for on Cohere, scoped per user.

CALL ANY TOOL
17 tools for language models in Cohere: generate chat messages, create embeddings, rerank documents, classify texts, tokenize text, list models, and run and track embed jobs.
cohere_chat_generate
Generate chat
Generate the next assistant message for a conversation with a Cohere chat model, optionally grounded in documents or with tools the model can call. Returns id, finish_reason, the assistant message (text content, tool_calls and citations) and token usage. Use this for text generation, question answering over supplied documents, structured JSON output or tool calling. The response is returned in one piece; streaming is not supported here.
Parameters
Name
Type
Required
Description
messages
array
Required
The conversation so far, oldest first. Each message has a role (system, user, assistant or tool) and content. Content is a string or a list of content blocks such as text blocks. Assistant messages may carry tool_calls, and tool messages answer them with the matching tool_call_id. Example: [{"role": "system", "content": "You are a concise assistant."}, {"role": "user", "content": "Summarize the benefits of reranking in two sentences."}].
model
string
Required
Name of the Cohere chat model to use. Get valid names from cohere_model_list with endpoint chat. Example: command-a-03-2025.
citation_mode
string
Optional
How citations are generated when documents or tools are used: ENABLED, DISABLED, FAST, ACCURATE or OFF. Leave empty for the model default. Example: ACCURATE. One of: `ENABLED`, `DISABLED`, `FAST`, `ACCURATE`, `OFF`.
documents
array
Optional
Documents the model can read and cite in its answer. Each item is either a plain string or an object with a data object holding the document fields and an optional id. Not supported together with response_format. Example: [{"id": "doc1", "data": {"title": "Refund policy", "text": "Refunds are issued within 30 days."}}].
frequency_penalty
number
Optional
Penalty from 0 to 1 on tokens in proportion to how often they already appeared, to reduce repetition. Leave empty for the default of 0. Example: 0.2.
k
integer
Optional
Top-k sampling: only the k most likely tokens are considered at each step, from 0 to 500. 0 disables top-k. Leave empty for the default of 0. Example: 40.
logprobs
boolean
Optional
Set to true to include the log probabilities of the generated tokens in the response. Default false. Example: true.
max_tokens
integer
Optional
Maximum number of output tokens to generate. Leave empty for the model's maximum. If the limit is hit, finish_reason is MAX_TOKENS. Example: 500.
p
number
Optional
Nucleus sampling: only the most likely tokens with total probability p are considered, from 0.01 to 0.99. Leave empty for the default of 0.75. Example: 0.75.
presence_penalty
number
Optional
Penalty from 0 to 1 applied equally to every token that already appeared, to reduce repetition. Leave empty for the default of 0. Example: 0.2.
priority
integer
Optional
Request priority: lower numbers are handled earlier and are less likely to be dropped under load. 0 is the highest and the default. Example: 0.
response_format
object
Optional
Force the output format. Use {"type": "json_object"} for any JSON object, optionally with a json_schema the output must follow, or {"type": "text"}. When asking for JSON, also tell the model in a message to produce JSON. Not supported together with documents or tools. Example: {"type": "json_object", "json_schema": {"type": "object", "properties": {"name": {"type": "string"}}, "required": ["name"]}}.
safety_mode
string
Optional
Safety instruction added to the prompt: CONTEXTUAL (default), STRICT or OFF. Newer models such as command-r7b-12-2024 accept only CONTEXTUAL and STRICT. Example: CONTEXTUAL. One of: `CONTEXTUAL`, `STRICT`, `OFF`.
seed
integer
Optional
Seed for best-effort deterministic sampling: the same seed and parameters should usually return the same reply. Example: 42.
stop_sequences
array
Optional
Up to 5 strings that stop generation when the model produces one of them; the stop string is not included in the reply. Example: ["\n\n", "END"].
strict_tools
boolean
Optional
Set to true to make tool calls follow the tool definitions strictly. The first requests with a new set of tools take longer. Example: true.
temperature
number
Optional
Randomness of the output, from 0 to 1; a value above 1 is rejected. Lower is more deterministic. Leave empty for the default of 0.3. Example: 0.3.
thinking_token_budget
integer
Optional
Maximum number of tokens the model may spend thinking before it answers. Only used with reasoning models; set thinking_type to enabled. Example: 2000.
thinking_type
string
Optional
Turn reasoning on or off for models that support it: enabled or disabled. Reasoning models think by default. Example: disabled. One of: `enabled`, `disabled`.
tool_choice
string
Optional
Force or forbid tool use. REQUIRED makes the model call at least one tool (tools must be set); NONE makes it answer directly. Leave empty to let the model decide. Example: REQUIRED. One of: `REQUIRED`, `NONE`.
tools
array
Optional
Functions the model may call. Each tool is an object with type function and a function object holding name, description and parameters (a JSON Schema). When the model wants a tool, finish_reason is TOOL_CALL and the message has tool_calls. Example: [{"type": "function", "function": {"name": "get_weather", "description": "Get the weather for a city", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}}].
cohere_connector_get
Get connector
cohere_connector_list
List connector
cohere_dataset_get
Get dataset
cohere_dataset_list
List dataset
cohere_dataset_usage_get
Get dataset usage
cohere_documents_rerank
Documents rerank
cohere_embed_job_cancel
Cancel embed job
cohere_embed_job_create
Create embed job
cohere_embed_job_get
Get embed job
cohere_embed_job_list
List embed job
cohere_embeddings_generate
Generate embeddings
cohere_model_get
Get model
cohere_model_list
List model
cohere_text_classify
Text classify
cohere_text_tokenize
Text tokenize
cohere_tokens_detokenize
Tokens detokenize
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Cohere tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["cohere"], toolNames: [
    "cohere_embeddings_generate",
    "cohere_documents_rerank",
    "cohere_chat_generate"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Embed these help articles, rerank them against a customer question, and write a reply using the top result" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["cohere"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Embed these help articles, rerank them against a customer question, and write a reply using the top result" }],
  tools,
});

// Execute the tool call with the user's vaulted Cohere access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["cohere"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Embed these help articles, rerank them against a customer question, and write a reply using the top result" }],
  tools,
});

// Tool call runs with the user's vaulted Cohere access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["cohere"] }, pageSize: 100,
});

const agent = new Agent({
  name: "language_model_agent",
  model: "gemini-2.5-pro",
  instruction: "Cohere tools scoped to this user",
  tools,
});

await agent.run("Embed these help articles, rerank them against a customer question, and write a reply using the top result");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Cohere tool. Click to copy, paste into your agent, done.
Generate and rerank
Copy the prompt
Copied
Generate a chat reply to this customer question with a Cohere model.
Copy the prompt
Copied
Rerank these documents by relevance to my query.
Copy the prompt
Copied
Classify these 20 support messages as billing, bug, or feature request.
Embeddings
Copy the prompt
Copied
Create embeddings for these 10 product descriptions.
Copy the prompt
Copied
Start an embed job for my validated dataset.
Copy the prompt
Copied
Show the status of my latest embed job.
Models and datasets
Copy the prompt
Copied
List the Cohere models available to my account.
Copy the prompt
Copied
Tokenize this text with the command model tokenizer.
Copy the prompt
Copied
How much dataset storage is my organization using?
SEE HOW AUTH WORKS
Each user connects their own Cohere access token once; Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Cohere
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Cohere
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Cohere
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Cohere
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI connectors.
Support and Ops Teams
Support triage agent
Fetches new Zendesk tickets, classifies them by type and urgency, searches the Notion knowledge base for an answer, and routes what it cannot resolve to Slack. Every call runs on the support agent's own delegated OAuth.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Test other agents
See the same per-user auth pattern across other AI connectors.
SUPPORT
Support triage agent
Classify new Zendesk tickets, search the Notion knowledge base for an answer, and route what it cannot resolve to Slack.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Cohere access token looks fine in a demo. In production every chat and embed job looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Cohere today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Cohere as the user or through a shared key?
As the user. Each user connects their own Cohere access token once, and Scalekit sends it with every call. Audit logs attribute every chat, embedding, and embed job to that user, not a shared service account.
Where is the Cohere access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Cohere?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example generation and rerank tools without cohere_embed_job_create and cohere_embed_job_cancel, which start and cancel embed jobs. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Cohere access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which Cohere tools work on datasets and embed jobs?
cohere_dataset_list and cohere_dataset_get read datasets, and cohere_dataset_usage_get reports storage used. cohere_embed_job_create starts an asynchronous job that embeds every entry of a validated embed-input dataset, and cohere_embed_job_get reports its status.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""cohere"": {
""url"": ""https://mcp.scalekit.com/cohere"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.cohere]
url = ""https://mcp.scalekit.com/cohere""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""cohere"": {
""url"": ""https://mcp.scalekit.com/cohere"",
""type"": ""http""
}
}
}