@cogniahq/mcp
OfficialAllows searching and retrieving memories from Cognia that contain GitHub repositories, issues, and pull requests.
Allows searching and retrieving memories from Cognia that contain Jira issues and projects.
Allows searching and retrieving memories from Cognia that contain Linear issues and projects.
Allows searching and retrieving memories from Cognia that contain Notion pages and databases.
Allows searching and retrieving memories from Cognia that contain Slack messages and files.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@cogniahq/mcp search for the decision on database migration"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@cogniahq/mcp
End-to-end encrypted memory for Claude Desktop, Cursor, Zed, Cline, and any MCP-compatible client. Bring your own OpenAI key. Open source under MIT.
npx -y @cogniahq/mcp init YOUR_COGNIA_API_KEYThat prints the config block you paste into Claude Desktop, Cursor, or Zed. Restart the client and your AI assistant can query your Cognia workspace as a native tool.
What this is
A Model Context Protocol server that exposes your Cognia memory to any MCP client. Your assistant can search, retrieve, and act against decisions, notes, documents, and integrations you've connected to Cognia (Slack, Notion, Linear, Jira, GitHub, Drive, and more).
It is the client-side surface. The backend it talks to is end-to-end encrypted at rest with per-org keypairs (libsodium Argon2id); the database holds only ciphertext. With BYOK enabled, your prompts and embeddings go to your OpenAI account on your contract, not ours. Threat model is public at https://cogniahq.tech/security.
Related MCP server: Tailpipe
Tools exposed
Tool | What it does |
| Hybrid (dense + sparse BM25) search with cross-encoder reranking |
| Fetch the full content of a single memory by id |
| Paginated chronological listing, optional substring filter |
| Draft an integration action (e.g. create a calendar event) |
| Execute a previously drafted action |
Mutating actions are drafted first by default. Execution is a separate tool call so the assistant cannot silently change your external systems.
Install
Claude Desktop
// ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
// %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"cognia": {
"command": "npx",
"args": ["-y", "@cogniahq/mcp"],
"env": { "COGNIA_API_KEY": "ck_live_..." }
}
}
}Cursor
// ~/.cursor/mcp.json (or .cursor/mcp.json in your repo for project-scoped)
{
"mcpServers": {
"cognia": {
"command": "npx",
"args": ["-y", "@cogniahq/mcp"],
"env": { "COGNIA_API_KEY": "ck_live_..." }
}
}
}Zed
// ~/.config/zed/settings.json
{
"context_servers": {
"cognia": {
"command": { "path": "npx", "args": ["-y", "@cogniahq/mcp"] },
"env": { "COGNIA_API_KEY": "ck_live_..." }
}
}
}Restart your client. Your assistant now has Cognia tools.
Don't want to remember the JSON? Run
npx -y @cogniahq/mcp initand it prints all three blocks with your API key inlined.
Getting an API key
Sign up at https://cogniahq.tech (free up to 5 seats, no card)
Open Settings → API keys
Create a key. Copy the
ck_live_...value (shown once)
Environment variables
Variable | Required | Default |
| yes | — |
| no |
|
| no |
|
Use as a TypeScript client
The same package also exports a typed REST client if you want to build against the Cognia API without the MCP transport.
import { CogniaClient } from '@cogniahq/mcp/client'
const cognia = new CogniaClient({ apiKey: process.env.COGNIA_API_KEY! })
const hits = await cognia.search.query({ query: 'postgres migration decision', limit: 5 })
for (const hit of hits) {
console.log(hit.title, hit.snippet)
}Full surface: cognia.memories.list / iterate / retrieve / update / delete, cognia.search.query, cognia.actions.plan / retrieve / execute. Built-in retry with exponential backoff and Retry-After support.
Build from source
git clone https://github.com/cogniahq/cognia-mcp.git
cd cognia-mcp
npm install
npm run build
node dist/cli.js --helpWhy open source
If you ship an MCP server that touches company knowledge, your security team will want to read it before approving the install. So we open-sourced ours. The encrypted backend, search pipeline, and admin console stay closed. The surface that runs on your machine is right here.
The integrations SDK and a small cognia memory CLI will follow on the same MIT terms.
License
MIT. See LICENSE.
Links
Cognia: https://cogniahq.tech
API docs: https://cogniahq.tech/developers
Security and threat model: https://cogniahq.tech/security
Pricing: https://cogniahq.tech/pricing
Available Tools
5 toolscognia_action_executeB
Execute a previously drafted Cognia action by action_run_id. This may mutate external systems such as Google Calendar.
Inputs: actionRunId (required).
cognia_action_planA
Plan a Cognia integration action, such as listing, creating, updating, or deleting Google Calendar events. Returns an action_run_id. Mutating drafts require execution before external systems change unless executionPolicy is auto_execute and the API key permits it.
Inputs: prompt, actionName, arguments, executionPolicy, +1 more.
cognia_get_memoryA
Fetch the full content of a single memory by id. Use after cognia_search when you need more than the snippet.
Inputs: id (required).
cognia_list_memoriesA
Paginated chronological listing of memories. Useful for browsing recent activity. Use cognia_search for semantic queries.
Inputs: cursor, limit, q.
cognia_searchA
Hybrid (dense + sparse BM25) search across the user's Cognia memories with cross-encoder reranking. Use this whenever the user asks about anything in their workspace, documents, or browsing history.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: action planning vs execution, and memory retrieval via different methods (get by ID, list chronologically, search semantically). No overlap.
All tools share the 'cognia_' prefix, but naming patterns vary: two use 'domain_verb' (action_execute, action_plan), two use 'verb_noun' (get_memory, list_memories), and one uses just a verb (cognia_search). Also singular/plural inconsistency (memory vs memories).
With 5 tools covering two distinct domains (actions and memories), the count is well-scoped and not overwhelming or too sparse.
The actions domain covers plan and execute but lacks listing, updating, or canceling actions. The memory domain allows reading (get, list, search) but no create, update, or delete operations, leaving notable gaps for a full lifecycle.
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Persistent personal memory for AI assistants — save, search, and recall across every MCP client.
Shared memory for connected AI tools. Projects, rules and skills over MCP. OAuth or API key.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables LLM agents to persist, search, update, forget, summarize, and manage user cognitive memories through MCP tools.7MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query your complete local conversation history and knowledge graph over MCP, including full-fidelity transcripts, search, and typed, dated entity relationships.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI assistants to save, recall, and reason over a persistent, shared memory vault stored as Notion pages, so conversations, decisions, tasks, and entities survive session resets, new branches, and handoffs between teammates and agents.347 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to capture, classify, synthesize, and retrieve persistent shared knowledge from sources such as Obsidian, code, transcripts, bookmarks, and sessions. It provides token-efficient search, context briefings, and tiered memory through MCP and REST APIs.10 npmMIT