Logo Synap MCP Server

Synap MCP Server

Tổ chức
maximem-ai

Maximem Synap is the memory layer that makes AI agents remember. 92% LongMemEval, 93.2% on LOCOMO. Works natively with LangChain, LlamaIndex, CrewAI, Google ADK, AutoGen, OpenAI Agents, Semantic Kernel, Haystack, and Pydantic AI.

Nhà phát hànhmaximem-ai
Kho mãmaximem_synap_sdk
Ngôn ngữPython
Bản fork
15
Sao
73
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépApache-2.0
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Synap MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    73 sao và 15 bản fork từ kho mã được liên kết.


The memory layer for production AI agents

Your AI agents forget everything between conversations. Synap fixes that with a production-grade memory layer built for applications that serve real users at scale. #1 on LongMemEval (92%) and LoCoMo (93.2%), sub-15ms anticipatory retrieval, and native integrations with every major AI framework.

What's in this repo: the open-source Python and JavaScript SDKs plus all framework integrations, licensed under Apache 2.0. The Synap memory engine itself (ingestion, entity resolution, retrieval, anticipation) runs as a fully managed cloud service operated by Maximem and is not open source. The SDKs in this repo are clients for that service; there is nothing to self-host, and an API key is required.


Benchmarks

Synap leads the field on the two standard long-term memory benchmarks, evaluated on identical hardware with an open-source harness.

BenchmarkSynap accuracy
LongMemEval92%
LoCoMo93.2%

Synap outperforms leading published memory systems, run through the same open-source evaluation harness on identical hardware and configs.

"Longer conversations make Synap better, not worse." Richer entity graphs and stronger pattern recognition at scale.

Full methodology and reproduction instructions → maximem.ai/blog/synap-benchmark-results


Install

bash
# Python
pip install maximem-synap

# JavaScript / TypeScript
npm install @maximem/synap-js-sdk

60-second quickstart

Your agent forgets. Synap remembers across conversations, sessions, and devices.

The SDK connects to the hosted Synap cloud service, so you'll need an API key. There's no local server to run: memory processing happens in Synap's cloud, not in this package.

python
import asyncio
from maximem_synap import MaximemSynapSDK

sdk = MaximemSynapSDK(api_key="your-api-key")

async def main():
    await sdk.initialize()

    # Monday's standup
    await sdk.conversation.record_message(
        conversation_id="mon-standup",
        user_id="alice",
        role="user",
        content="I'm migrating our auth service to OAuth2 this sprint.",
    )

    # Friday: completely different conversation, same user
    context = await sdk.fetch(
        conversation_id="fri-review",
        user_id="alice",
        search_query=["what is alice working on?"],
    )

    print(context.formatted_context)
    # → "Alice is migrating the auth service to OAuth2 this sprint."

asyncio.run(main())
javascript
const { createClient } = require('@maximem/synap-js-sdk');

const client = createClient({ apiKey: 'your-api-key' });
await client.init();

// Record
await client.conversation.recordMessage({
    conversationId: 'mon-standup',
    userId: 'alice',
    role: 'user',
    content: "I'm migrating our auth service to OAuth2 this sprint.",
});

// Fetch later, anywhere
const context = await client.fetchUserContext({
    userId: 'alice',
    query: 'what is alice working on?',
});

console.log(context.formattedContext);

What makes Synap different

🎯 Anticipatory Retrieval

Synap pre-fetches context before your agent requests it. 15ms P50 latency in production. For voice AI agents, this is the difference between natural conversation and awkward pauses.

🔗 Entity Resolution

When a user says "my manager" in turn 3 and "Sarah" in turn 12, Synap resolves them automatically. Cross-session, cross-conversation, without the agent doing any work.

⏳ Temporal Awareness

Context from 30 minutes ago and context from 30 days ago should not carry equal weight. Synap applies temporal decay and relevance scoring so your agent surfaces the right information at the right time.

🧠 Conscious Forgetting

When a user says "ignore what I said about the budget," Synap processes that as a retraction, not just more context to store. Contradiction handling is built into the pipeline.

🏗️ Custom Memory Architectures

No universal memory model. Synap builds customized memory architectures per use case. Customer support agents and voice AI agents need different context strategies. Synap handles both.

🏢 Multi-Tenant Scoping

Built for B2B from day one. Memory is scoped across a four-level hierarchy:

client          → shared knowledge across your entire platform
  └── customer  → per-company context (multi-tenant B2B)
        └── user       → per-user memory and preferences
              └── conversation → in-session history

One fetch() call merges all relevant scopes in parallel.


Framework integrations

Installable packages, not code snippets. Deep framework surfaces with callbacks, graph nodes, retrievers, memories, and plugins.

LangChain

bash
pip install maximem-synap maximem-synap-langchain
python
from maximem_synap import MaximemSynapSDK
from synap_langchain import SynapChatMessageHistory
from langchain_openai import ChatOpenAI
from langchain_core.runnables.history import RunnableWithMessageHistory

sdk = MaximemSynapSDK(api_key="your-api-key")
await sdk.initialize()

chain = RunnableWithMessageHistory(
    ChatOpenAI(),
    lambda session_id: SynapChatMessageHistory(
        sdk=sdk, conversation_id=session_id, user_id="alice",
    ),
)

CrewAI

bash
pip install maximem-synap maximem-synap-crewai
python
from synap_crewai import SynapStorageBackend

crew = Crew(
    agents=[...], tasks=[...],
    memory=True,
    storage=SynapStorageBackend(sdk=sdk, user_id="alice"),
)

LlamaIndex

bash
pip install maximem-synap maximem-synap-llamaindex
python
from synap_llamaindex import SynapChatMemory

memory = SynapChatMemory(sdk=sdk, user_id="alice")
agent = ReActAgent.from_tools(tools, memory=memory)

All integrations

FrameworkPackageInstall
LangChainmaximem-synap-langchainpip install maximem-synap-langchain
LangGraphmaximem-synap-langgraphpip install maximem-synap-langgraph
LlamaIndexmaximem-synap-llamaindexpip install maximem-synap-llamaindex
CrewAImaximem-synap-crewaipip install maximem-synap-crewai
AutoGenmaximem-synap-autogenpip install maximem-synap-autogen
Haystackmaximem-synap-haystackpip install maximem-synap-haystack
Google ADKmaximem-synap-google-adkpip install maximem-synap-google-adk
OpenAI Agents SDKmaximem-synap-openai-agentspip install maximem-synap-openai-agents
Semantic Kernelmaximem-synap-semantic-kernelpip install maximem-synap-semantic-kernel
Pydantic AImaximem-synap-pydantic-aipip install maximem-synap-pydantic-ai
Agnomaximem-synap-agnopip install maximem-synap-agno
LiveKit Agentsmaximem-synap-livekit-agentspip install maximem-synap-livekit-agents
Pipecatmaximem-synap-pipecatpip install maximem-synap-pipecat
Claude Agent (Python)maximem-synap-claude-agentpip install maximem-synap-claude-agent
Claude Agent (TypeScript)@maximem/synap-claude-agentnpm i @maximem/synap-claude-agent
Mastra@maximem/synap-mastranpm i @maximem/synap-mastra
Vercel AI SDK@maximem/synap-vercel-adknpm i @maximem/synap-vercel-adk
Vercel eve@maximem/synap-evenpm i @maximem/synap-eve
NVIDIA NeMo Agent Toolkitmaximem-synap-nemo-agent-toolkitpip install maximem-synap-nemo-agent-toolkit
Microsoft Agent Frameworkmaximem-synap-microsoft-agentpip install maximem-synap-microsoft-agent
Strands Agentsmaximem-synap-strands-agentspip install maximem-synap-strands-agents
CAMEL-AImaximem-synap-camel-aipip install maximem-synap-camel-ai
Smolagentsmaximem-synap-smolagentspip install maximem-synap-smolagents
Deepagentsmaximem-synap-deepagentspip install maximem-synap-deepagents

MCP server

Give no-code and low-code agents (Gumloop, n8n, and any MCP-compatible client) persistent memory with nothing but an MCP URL and your Synap API key. No SDK, no code. The server exposes Synap's memory as four MCP tools (log_exchange, check_memory_status, recall_context, list_recent_memories) over Streamable HTTP.

It's a stateless adapter over the hosted Synap API: each call maps to one REST operation and your Bearer token is forwarded verbatim, so there's no separate backend to run. Use the managed endpoint (grab the URL and token from your dashboard), or self-host the adapter from source.

→ Source & self-hosting: packages/mcps/synap-mcp-server/


Deep dives

Understand the system before building on it:


Agent skills

Drop-in instructions for coding agents (Claude Code, Cursor, etc.) that teach them how to wire Synap into your codebase.

  • Maximem Synap skill: covers SDK setup, scoping (User/Customer/Client), ingestion, retrieval, and one-page wiring guides for all supported frameworks.

Requirements

  • Python SDK: Python 3.11+
  • JavaScript SDK: Node 18+ (Python 3.11+ for the bridge layer)
  • A Synap API key: get one at maximem.ai

Resources & community


Contributing

This repo is a published mirror of Maximem's monorepo, so everything under packages/ is overwritten on each sync and pull requests against it are closed. Bug reports, gaps, and new-framework requests are very welcome as issues. See CONTRIBUTING.md for how to run the code locally and what a new integration needs.


License

Apache 2.0. See LICENSE.


Dùng MCP Synap MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Synap MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Synap MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Synap MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "synap-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Synap MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Synap MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Synap MCP Server giúp tôi làm việc này không?
Synap MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Synap MCP Server.

Câu hỏi thường gặp

Máy chủ MCP Synap MCP Server dùng để làm gì?

Synap MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Synap MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Synap MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Synap MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Synap MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Synap MCP Server với TypingMind?

Synap MCP Server hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Synap MCP Server cung cấp những công cụ nào trong TypingMind?

Synap MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Synap MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Synap MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇