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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
有赞技术团队
有赞技术团队
H
Help Net Security
V
Visual Studio Blog
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
L
LangChain Blog
N
Netflix TechBlog - Medium
罗磊的独立博客
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
Hugging Face - Blog
Hugging Face - Blog
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements

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
# 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.