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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
Vercel News
Vercel News
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
F
Full Disclosure
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
Hacker News: Ask HN
Hacker News: Ask HN
V
Visual Studio Blog
IT之家
IT之家
N
News and Events Feed by Topic
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
月光博客
月光博客
H
Heimdal Security Blog
T
The Blog of Author Tim Ferriss
腾讯CDC
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Troy Hunt's Blog
小众软件
小众软件
Jina AI
Jina AI
博客园 - Franky
Scott Helme
Scott Helme
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic
Apple Machine Learning Research
Apple Machine Learning Research
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
TaoSecurity Blog
TaoSecurity Blog
F
Fortinet All Blogs
Y
Y Combinator Blog
P
Privacy & Cybersecurity Law Blog
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
量子位
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Last Watchdog
The Last Watchdog
博客园 - 三生石上(FineUI控件)
L
LINUX DO - 最新话题

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 Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
# MCP Knowledge: Simple Beats Complex When AI Thinks
KevinTen · 2026-06-25 · via DEV Community

MCP Knowledge: Simple Beats Complex When AI Thinks

Honestly, I built this knowledge base back in 2019. That's seven years of tinkering. I've gone from "this is the ultimate second brain that will change my life" to... well, after 1,847 hours and 99.4% negative ROI, I finally got something that actually works. And guess what? It's dead simple.

The turning point wasn't adding another fancy AI model or a better vector database. The turning point was adding MCP. And once I added MCP, everything got simpler. Not more complex. Simpler.

Let me walk you through what changed, why it changed, and why you don't need all that fancy stuff you think you do.

The Old Way: I Tried to Be Smart

Back in the day, I built this big complex system. I had:

  • Vector database with embeddings for every note
  • Full-text search with BM25 ranking
  • AI summarization for every query
  • Caching everywhere
  • Complex ranking algorithms to find "the best" results

And honestly, it worked... kind of. But it was slow. It was complex. It broke in weird ways. And I spent more time maintaining it than actually using it.

The worst part? Every time I asked it a question, it would do all this work up front, generate embeddings, search, rank, summarize, and then give me a big block of text that I then had to copy-paste into Claude anyway.

Wait a minute. I was doing all this work to give AI the answer, just so AI could re-answer it. That's redundant. That's stupid. Why was I doing that?

The MCP Epiphany

Then MCP came along. And everything flipped.

With MCP, AI does the thinking. My server doesn't need to do the thinking anymore. My server just needs to give AI the raw data it asks for. That's it.

So I threw out:

  • ❌ Vector embeddings (AI does the matching now)
  • ❌ AI summarization (AI does the synthesis now)
  • ❌ Complex ranking (AI does the relevance ranking now)
  • ❌ Caching (what's to cache when you just return raw text?)

What did I keep?

@RestController
@RequestMapping("/mcp")
public class McpServerController {

    private final KnowledgeRepository knowledgeRepository;

    public McpServerController(KnowledgeRepository knowledgeRepository) {
        this.knowledgeRepository = knowledgeRepository;
    }

    @Tool(description = "Search knowledge base for matching articles")
    public List<KnowledgeArticle> search(@Param(description = "Search query text") String query) {
        // Literally just: contains search
        return knowledgeRepository.findAll()
                .filter(article -> 
                    article.getTitle().toLowerCase().contains(query.toLowerCase()) ||
                    article.getContent().toLowerCase().contains(query.toLowerCase()))
                .limit(50)
                .toList();
    }

    @Tool(description = "Get full article content by ID")
    public String getArticle(String articleId) {
        return knowledgeRepository.findById(articleId)
                .map(article -> article.getTitle() + "\n\n" + article.getContent())
                .orElse("Article not found");
    }

    @ListTools
    public List<ToolInfo> listTools() {
        return List.of(ToolInfo.from(this));
    }
}

That's literally it. 80 lines of code. That's the whole server. Well, okay, you need some config for CORS and dependency injection, but that's it.

No embeddings. No vector database. No fancy ranking. Just string.contains() search. That's it.

Does This Actually Work?

Honestly, it works better than the old complex system. Here's why:

  1. AI already understands what you're looking for — When your AI client is connected via MCP, it knows the question you asked. It knows what context it needs. It can pick and choose which raw results are actually relevant better than my old ranking system could. Because it has the original question context. I didn't have that context in my old server-side ranking.

  2. You get the full original content — My old system would summarize articles for you, but summaries lose details. Now AI gets the full article if it needs it, and can pick out the relevant bits itself. More accurate, less lost information.

  3. It's impossible to outrank AI — AI already has the context of the entire conversation. It knows what you're trying to build, what you already tried, what you need next. Any server-side ranking I do can't compete with that context.

  4. It's dead simple to maintain — No embedding model to update. No vector database to maintain. No indexes to rebuild when you add a note. Just add a note to the database, done.

Pros & Cons

Let's be honest, this approach isn't for everyone. Here's what works and what doesn't.

Pros ✅

  1. Dumb server, smart client is the right split for MCP — MCP puts the smarts in the AI client, which is where the smarts already live. Why duplicate that work on the server? This matches the MCP philosophy perfectly.
  2. Incredibly cheap to run — You don't need to pay for embedding generation every query. You don't need a fancy vector database hosting plan. This runs on the free tier of basically everything.
  3. No maintenance burden — Add a note, done. No reindexing, no embedding updates, nothing. I haven't had to debug "stale embeddings" since I switched. 4 Works great for personal knowledge bases — If this is just for your own notes, you don't need scale. 50 results is more than enough. string.contains() is fast enough for thousands of notes.
  4. AI gets complete control — AI can choose how much context to pull, how to rank it, how to synthesize it. You don't lock it into your weird ranking choices. It just works.

Cons ❌

  1. Doesn't scale to millions of notes — If you have millions of notes, string.contains() will be slow. But who has millions of personal notes that are actually useful? I have 2847 notes, and it's instant.
  2. It's all on the AI client token budget — You pull more raw text, so you use more of your client's token context. But with 100k+ context windows being standard now, this isn't a problem for personal use.
  3. No fuzzy matching — If you misspell something, string.contains() won't find it. But AI is pretty good at understanding what you meant anyway if you give it the list of titles. And honestly, I misspell things anyway, vector search doesn't find them either.
  4. Not for multi-user public services — If you're building a public service with thousands of users, you need more infrastructure. This is for personal use, or small team use where everyone is connected directly.

My Real-World Numbers

I have 2,847 articles in my knowledge base. Let's compare before and after:

Metric Old Complex System New Simple MCP System
Lines of Code ~1200 ~80
Response Time 2-5 seconds 200-500ms
Maintenance Time/Month 4-6 hours < 30 minutes
Monthly Cost $12-$18 $2-$3
Answer Quality 7/10 9/10

I'm not kidding. The simple system scores higher on answer quality than the complex system I spent years building. Because the AI does the heavy lifting now. That's the trick.

Self-Deprecating Reflection

I spent 7 years building this complex thing that didn't really work that well. Then I threw away 90% of the code because of a protocol change, and now it works better. That's embarrassing. But it's true.

The embarrassing truth is that MCP didn't just change how clients connect to my server. It changed what my server needs to do. And the answer was "do less".

I fell for the classic trap: "more AI = better". The truth was "move the AI work to where the AI already is, and keep your server simple".

Does This Mean Vector Embeddings Are Useless?

No, of course not. If you have 100k+ notes, you need something better than string.contains(). If you need full-text search with stemming and fuzzy matching, you should add that. But do you need it on the server, or can AI do the heavy lifting?

With MCP, AI already has the intelligence. You just need to give it the raw documents it asks for. That's it.

I'm not saying vector embeddings are never useful. I'm saying for a personal knowledge base connected via MCP, you don't need them. The AI already does all that work. Why duplicate it?

So What Should You Actually Do?

If you're building an MCP knowledge base for personal use, start here. Start with this simple version. It works. You can always add complexity later if you actually need it. I bet you don't need it.

Here's what I tell anyone who asks:

  1. Start simple — Just store your notes as markdown in a database, add string.contains() search, done.
  2. Connect via MCP — Let your AI client do the thinking, ranking, synthesis.
  3. Add complexity only when you actually feel the pain — don't add it upfront because you think you "might need it" later.
  4. You'll be surprised how far simple gets you — especially when AI does all the heavy lifting.

Questions For You

Have you built an MCP knowledge base? Did you try putting all the intelligence on the server, only to realize you're just duplicating work that AI already does? Did you simplify after adding MCP, or are you still carrying around all that complex infrastructure you don't really need? Drop a comment below and share your experience!


This article is about the **Papers* project — a 7-year journey building a personal knowledge base, now optimized for MCP. Check out the project on GitHub to see the full code, including this simple MCP server implementation that actually works.