# servers | Model Context Protocol | Knowledge Base | Instagit

Model Context Protocol Servers

GitHub Stars: 79.7k

Repository: https://github.com/modelcontextprotocol/servers

---

## Articles

### [MCP Roots Protocol Constraints: Security and Validation Rules Explained](/modelcontextprotocol/servers/what-are-mcp-roots-protocol-constraints)

Understand MCP roots protocol constraints. Discover how directory lists replace allow lists, validate URIs, and support dynamic updates for modelcontextprotocol/servers.

- Tags: deep-dive
- Published: 2026-03-01

### [How to Create Custom Zod Schemas for Tool Input Validation in MCP](/modelcontextprotocol/servers/how-to-create-custom-zod-schemas-tool-input-validation-mcp)

Learn to create custom Zod schemas for tool input validation in MCP. Define schemas, attach them to inputSchema, and parse arguments for type-safe execution in handlers.

- Tags: how-to-guide
- Published: 2026-03-01

### [How the MCP Filesystem Server Handles Symlinks on macOS](/modelcontextprotocol/servers/how-does-mcp-filesystem-server-handle-symlinks-macos)

Discover how the MCP Filesystem server securely handles symlinks on macOS. It resolves paths and validates directories to prevent attacks, ensuring safe access for macOS users.

- Tags: internals
- Published: 2026-03-01

### [How to Write Tests for MCP Server Tools: A Complete Guide](/modelcontextprotocol/servers/how-to-write-tests-for-mcp-server-tools)

Learn how to write tests for MCP server tools by mocking McpServer, capturing handlers, and invoking them with JSON inputs to check return structures. A complete guide.

- Tags: how-to-guide
- Published: 2026-03-01

### [Entities and Observations in MCP Knowledge Graph: Key Differences and Usage](/modelcontextprotocol/servers/difference-between-entities-observations-mcp-knowledge-graph)

Understand the core differences between entities and observations in the MCP knowledge graph. Learn how these components structure and store vital information within the Model Context Protocol.

- Tags: deep-dive
- Published: 2026-03-01

### [How to Configure Environment Variables for MCP Servers: A Complete Guide](/modelcontextprotocol/servers/how-to-configure-environment-variables-mcp-servers)

Learn how to configure environment variables for MCP servers. Customize file paths, ports, and behavior using process.env with VS Code, Docker, or CLI.

- Tags: how-to-guide
- Published: 2026-03-01

### [How to Implement Subscriptions for Real-Time Updates in MCP](/modelcontextprotocol/servers/how-to-implement-subscriptions-real-time-updates-mcp)

Learn to implement real-time subscriptions in Model Context Protocol MCP servers. Register RPC handlers, track sessions, and push update notifications for instant data synchronization. Explore the repository for code examples.

- Tags: how-to-guide
- Published: 2026-03-01

### [MCP Protocol Specification for Tools and Resources: A Complete Implementation Guide](/modelcontextprotocol/servers/what-is-mcp-protocol-specification-tools-resources)

Explore the MCP protocol specification, a JSON-RPC contract for LLM clients to discover invoke and stream data from server tools and resources. Learn implementation details.

- Tags: api-reference
- Published: 2026-03-01

### [How KnowledgeGraphManager Loads and Saves the Graph in the MCP Memory Server](/modelcontextprotocol/servers/how-does-knowledgegraphmanager-load-and-save-graph-memory-server)

Learn how KnowledgeGraphManager loads and saves graphs in the MCP Memory Server using JSON Lines for efficient, on-demand data management and atomic saves.

- Tags: internals
- Published: 2026-03-01

### [How to Use Glob Patterns for File Searching in the MCP Filesystem Server](/modelcontextprotocol/servers/how-to-use-glob-patterns-for-file-searching-mcp-filesystem-server)

Learn to use glob patterns for file searching in the MCP Filesystem server with the search_files tool. Efficiently find files using minimatch recursive matching.

- Tags: how-to-guide
- Published: 2026-03-01

### [How the MCP Memory Server Handles Backward Compatibility Migration](/modelcontextprotocol/servers/how-does-mcp-memory-server-handle-backward-compatibility-migration)

Discover how the MCP Memory server seamlessly handles backward compatibility migration, automatically converting legacy memory json files to the modern jsonl format on startup with zero manual effort.

- Tags: migration-guide
- Published: 2026-03-01

### [SSE vs Streamable HTTP in MCP: Key Differences and Implementation Guide](/modelcontextprotocol/servers/difference-between-sse-and-streamable-http-transports-mcp)

Understand SSE vs Streamable HTTP in MCP. Discover key differences in streaming, endpoints, and session management. Implement MCP efficiently with this guide.

- Tags: deep-dive
- Published: 2026-03-01

### [How to Add New Tools to the MCP Everything Reference Server](/modelcontextprotocol/servers/how-to-add-new-tools-to-mcp-everything-reference-server)

Learn to add new tools to the MCP Everything reference server. Our guide shows you how to register custom tools using TypeScript in your repository.

- Tags: how-to-guide
- Published: 2026-03-01

### [How the MCP Everything Server Supports Multiple Transports](/modelcontextprotocol/servers/how-does-mcp-everything-server-support-multiple-transports)

Discover how the MCP Everything server supports multiple transports like STDIO HTTP and SSE. It uses a shared factory for isolated server instances, ensuring identical functionality across all connections.

- Tags: internals
- Published: 2026-03-01

### [MCP Tool Annotations Explained: readOnlyHint, idempotentHint, and destructiveHint](/modelcontextprotocol/servers/what-are-mcp-tool-annotations)

Learn about MCP tool annotations readOnlyHint idempotentHint and destructiveHint These metadata flags help LLMs safely invoke functions retry operations and request user confirmation

- Tags: deep-dive
- Published: 2026-03-01

### [How to Register Resources and Prompts in MCP Servers: A Complete Implementation Guide](/modelcontextprotocol/servers/how-to-register-resources-and-prompts-in-mcp-servers)

Learn to register resources and prompts in MCP servers. This guide details using McpServer registerResource and registerPrompt for efficient server initialization.

- Tags: how-to-guide
- Published: 2026-03-01

### [How to Create Custom Tools in MCP Servers Using the TypeScript SDK](/modelcontextprotocol/servers/how-to-create-custom-tools-in-mcp-servers-using-typescript-sdk)

Learn to create custom tools in MCP servers with the TypeScript SDK. Define Zod schemas, implement handlers, and register tools efficiently for enhanced functionality.

- Tags: how-to-guide
- Published: 2026-03-01

### [Why the MCP Memory Server Uses JSONL Format: Architecture and Performance Benefits](/modelcontextprotocol/servers/why-does-mcp-memory-server-use-jsonl-format)

Discover why the MCP Memory server uses JSONL format. Learn about efficient writes, streaming reads, and backward-compatible migration from legacy JSON storage.

- Tags: architecture
- Published: 2026-03-01

### [How the MCP Memory Server Stores Entities, Relations, and Observations](/modelcontextprotocol/servers/how-does-mcp-memory-server-store-entities-relations-observations)

Discover how the MCP Memory server stores entities, relations, and observations using JSON Lines files and an in-memory KnowledgeGraph for efficient data management and persistence.

- Tags: internals
- Published: 2026-03-01

### [MCP Filesystem Server Security Measures: Defense-in-Depth Implementation](/modelcontextprotocol/servers/what-security-measures-does-mcp-filesystem-server-implement)

Learn how the MCP Filesystem server secures your data with defense-in-depth: runtime directory whitelisting, canonical path validation, symlink checks, and atomic operations to prevent exploits.

- Tags: deep-dive
- Published: 2026-03-01

### [How to Configure Allowed Directories in the MCP Filesystem Server](/modelcontextprotocol/servers/how-to-configure-allowed-directories-in-mcp-filesystem-server)

Learn to configure allowed directories in the MCP Filesystem server. Restrict file operations by whitelisting directories via command-line arguments or the MCP Roots protocol for enhanced security.

- Tags: how-to-guide
- Published: 2026-03-01

### [How to Implement Path Validation in the MCP Filesystem Server](/modelcontextprotocol/servers/how-to-implement-path-validation-in-mcp-filesystem-server)

Implement path validation in the MCP Filesystem server using validatePath() and a whitelist architecture to securely normalize paths and resolve symlinks before filesystem access.

- Tags: how-to-guide
- Published: 2026-03-01

### [MCP Server Transport Mechanisms: STDIO, SSE, and Streamable HTTP Explained](/modelcontextprotocol/servers/what-are-mcp-server-transport-mechanisms)

Explore MCP server transport mechanisms: STDIO, SSE, and Streamable HTTP. Understand these SDK transport classes for flexible JSON-RPC communication in your deployments.

- Tags: deep-dive
- Published: 2026-03-01

### [How the MCP Roots Protocol Enables Dynamic Directory Access](/modelcontextprotocol/servers/how-does-mcp-roots-protocol-enable-dynamic-directory-access)

Discover how the MCP roots protocol allows servers to dynamically access authorized directories at runtime. Learn more about this innovative modelcontextprotocol/servers feature.

- Tags: deep-dive
- Published: 2026-03-01

