惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
罗磊的独立博客
小众软件
小众软件
I
InfoQ
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
MyScale Blog
MyScale Blog
博客园 - 聂微东
Microsoft Security Blog
Microsoft Security Blog
H
Help Net Security
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
S
SegmentFault 最新的问题
博客园 - 三生石上(FineUI控件)
P
Proofpoint News Feed
博客园 - 司徒正美
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
Jina AI
Jina AI
N
Netflix TechBlog - Medium

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Give your AI agent long-term memory with MCP (no code)
Red Fox Code · 2026-06-03 · via DEV Community
Cover image for Give your AI agent long-term memory with MCP (no code)

Red Fox Code

Your agent forgets everything when the context window ends. The usual fix is to wire a vector DB, write ingest/retrieve glue, and babysit it. There's a faster path: plug a memory API into
the agent over MCP and let the model call add_memory / search_memory itself — no glue code.

## What MCP gives you

The Model Context Protocol lets an agent discover and call tools. Connect a memory server and the agent gains two tools automatically:

  • add_memory — store a fact
  • search_memory — recall relevant facts

The model decides when to remember and when to recall, in context — which is exactly where it knows whether something is worth keeping.

## Add it to Claude Code

claude mcp add nexusyn --transport http \
"https://api.nexusyn.ai/v1/mcp" \
--header "Authorization: Bearer "

That's the whole integration. Your agent now has persistent memory across sessions.

Any MCP client works (e.g. Cursor)

{
"mcpServers": {
"nexusyn": {
"transport": "http",
"url": "https://api.nexusyn.ai/v1/mcp",
"headers": { "Authorization": "Bearer " }
}
}
}

Why this beats nearest-neighbor search alone

A raw vector store returns similar chunks — but it has no idea which fact is current. When a user corrects something, the old embedding is just as "similar" to the next query. A memory
layer adds the parts that actually make an agent reliable:

  • Hybrid search + reranking so recall and precision both hold up
  • Time-aware recall — updates supersede old facts instead of overwriting them, so "now" vs. "then" are both answerable
  • Grounded answers with sources you can verify

Multi-agent, attributed

Several agents can share one memory store. Each write carries its agent, so Claude Code, Cursor and your own app can read each other's memory while you still see who wrote what.

Try it

Grab a key, run the one-liner above, and ask your agent to remember something — then start a fresh session and watch it recall. Full guide and the REST equivalent are in the Nexusyn docs
(https://nexusyn.ai/docs/mcp).

Disclosure: I work on Nexusyn, a time-aware memory API for AI agents.

https://nexusyn.ai/blog/ai-agent-memory-mcp