mcp-knowledge-base

mcp-knowledge-base

Enables access to a notes knowledge base via MCP, providing tools for keyword search, note creation, and retrieval, along with browseable note resources.

Category
Visit Server

README

mcp-knowledge-base

A Model Context Protocol (MCP) server that exposes a notes knowledge base to MCP clients — Claude Desktop, IDEs, or any agent. It demonstrates the two things an MCP server provides: tools (actions the model can call) and resources (data the model can read). TypeScript, runs over stdio.

mcp typescript

What it exposes

Tools (src/server.ts):

Tool Purpose
search_notes keyword search across the knowledge base (title/tags/content weighted)
add_note add a new note
get_note fetch one note by id

Resources: every note is readable at note://{id}, with a listing — so a client can browse the knowledge base as data, not just call tools.

The domain logic (the notes store + search ranking) lives in src/notes.ts, separate from the protocol layer.

Use it with an MCP client

Build it, then point a client at the binary. For example, in Claude Desktop's claude_desktop_config.json:

{
  "mcpServers": {
    "knowledge-base": { "command": "node", "args": ["/abs/path/to/dist/index.js"] }
  }
}
npm install && npm run build
node dist/index.js     # speaks MCP over stdio

Tests

npm test

Two layers, both offline:

  • Unit — the notes store and search ranking.
  • Integration — a real MCP Client talks to the server over an in-memory transport (the same way a client would over stdio): it lists tools, calls search_notes/add_note/get_note, and reads a note:// resource. 9 tests total.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured