|
|
пре 1 месец | |
|---|---|---|
| .. | ||
| .npmignore | пре 1 месец | |
| README.md | пре 1 месец | |
| index.js | пре 1 месец | |
| package.json | пре 1 месец | |
MCP (Model Context Protocol) server wrapper for Cognio semantic memory.
Run the auto-setup script to configure all supported AI clients:
npm run setup
This automatically generates MCP configurations for:
If you prefer to configure manually, add Cognio to your client's MCP config:
Add to .vscode/mcp.json:
{
"servers": {
"cognio": {
"command": "npx",
"args": ["-y", "@0xrelogic/cognio-mcp"],
"env": {
"COGNIO_API_URL": "http://localhost:8080",
"COGNIO_API_KEY": "your-optional-api-key-here"
}
}
}
}
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%/Claude/claude_desktop_config.json (Windows):
{
"mcpServers": {
"cognio": {
"command": "npx",
"args": ["-y", "@0xrelogic/cognio-mcp"],
"env": {
"COGNIO_API_URL": "http://localhost:8080"
}
}
}
}
Add to ~/.cursor/mcp_settings.json:
{
"mcpServers": {
"cognio": {
"command": "npx",
"args": ["-y", "@0xrelogic/cognio-mcp"],
"env": {
"COGNIO_API_URL": "http://localhost:8080"
}
}
}
}
Add to ~/.continue/config.json:
{
"mcp": [
{
"name": "cognio",
"command": "npx",
"args": ["-y", "@0xrelogic/cognio-mcp"],
"env": {
"COGNIO_API_URL": "http://localhost:8080"
}
}
]
}
Add to ~/.cline/mcp.json:
{
"mcpServers": {
"cognio": {
"command": "npx",
"args": ["-y", "@0xrelogic/cognio-mcp"],
"env": {
"COGNIO_API_URL": "http://localhost:8080"
}
}
}
}
Add to ~/.windsurf/mcp_config.json:
{
"mcpServers": {
"cognio": {
"command": "npx",
"args": ["-y", "@0xrelogic/cognio-mcp"],
"env": {
"COGNIO_API_URL": "http://localhost:8080"
}
}
}
}
Add to ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"cognio": {
"command": "npx",
"args": ["-y", "@0xrelogic/cognio-mcp"],
"env": {
"COGNIO_API_URL": "http://localhost:8080"
}
}
}
}
Add to ~/gemini/mcp.json:
{
"mcpServers": {
"cognio": {
"command": "npx",
"args": ["-y", "@0xrelogic/cognio-mcp"],
"env": {
"COGNIO_API_URL": "http://localhost:8080"
}
}
}
}
Add to ~/.claude.json:
{
"mcpServers": {
"cognio": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@0xrelogic/cognio-mcp"],
"env": {
"COGNIO_API_URL": "http://localhost:8080"
}
}
}
}
Note: Claude Code requires "type": "stdio" in the config.
Save information to long-term semantic memory with automatic tagging and categorization.
Parameters:
text (required): The memory content to saveproject (optional): Project name for organization. Either provide this or use set_active_project firsttags (optional): Array of tags. If omitted and auto-tagging is enabled with a valid LLM API key (GROQ_API_KEY or OPENAI_API_KEY), tags will be auto-generatedmetadata (optional): Key-value metadata objectNotes:
Search memories using semantic similarity.
Parameters:
query (required): Search query textproject (optional): Filter by project. If omitted, uses active project (required)tags (optional): Filter by tags arraylimit (optional): Max results (default: 5)Notes:
List all memories with optional filtering.
Parameters:
project (optional): Filter by project. If omitted, uses active project (required)tags (optional): Filter by tags arraylimit (optional): Max results (default: 20)offset (optional): Skip results (default: 0)Notes:
Get a single memory by ID to view its full content.
Parameters:
memory_id (required): The ID of the memory to retrieveNotes:
Get statistics about stored memories.
No parameters required.
Archive (soft delete) a memory by ID.
Parameters:
memory_id (required): The memory ID to archivePermanently delete a memory by ID.
Parameters:
memory_id (required): The memory ID to deleteExport memories to JSON or Markdown format.
Parameters:
format (optional): Export format - 'json' or 'markdown' (default: json)project (optional): Filter by project nameSummarize long text using extractive or abstractive methods.
Parameters:
text (required): The text to summarizenum_sentences (optional): Number of sentences in summary (default: 3, max: 10)Set the active project context for all subsequent operations.
Parameters:
project (required): Project name to activateGet the currently active project context.
No parameters required.
List all available projects in the database.
No parameters required.
COGNIO_API_URL: Base URL for Cognio API (default: http://localhost:8080)COGNIO_API_KEY: Optional API key for authenticated requests (sent as X-API-Key header if provided)Auto-tagging and other features are configured via .env in the Cognio project root:
# Auto-tagging (requires LLM API key)
AUTOTAG_ENABLED=true
LLM_PROVIDER=groq
GROQ_API_KEY=your-key-here
GROQ_MODEL=openai/gpt-oss-120b
# Or use OpenAI instead
# OPENAI_API_KEY=your-key-here
# OPENAI_MODEL=gpt-3.5-turbo
# Semantic search threshold (lower = more results, default 0.4)
SIMILARITY_THRESHOLD=0.4
# Summarization
SUMMARIZATION_ENABLED=true
SUMMARIZATION_METHOD=abstractive
See .env.example in the Cognio root directory for complete configuration options.