Skip to main content
SubstratiaSubstratia
Start HereToolsReviewsResearchBlogDocsGitHub

Stay updated on agent memory infrastructure

New tools, memory patterns, and research on persistent AI identity.

SubstratiaSubstratiaMemory Infrastructure for AI Agents
Start HereToolsReviewsResearchBlogDocsGitHub

Intelligence is substrate-agnostic.

Built by practitioners.

Privacy PolicyTerms of Service
← Back to Blog
MCPClaude CodeGuide

Best MCP Servers for Claude Code in 2026: The Complete Guide

March 1, 202616 min read

MCP servers turn Claude Code from a smart assistant into a connected powerhouse. They let Claude read your database, manage your GitHub repos, search the web, and remember things across sessions—all through a standard protocol. Here are the servers that actually matter in 2026, with honest assessments of each.

What Is MCP?

The Model Context Protocol (MCP) is an open standard that lets AI models connect to external tools and data sources. Think of it as USB-C for AI—a single protocol that works across tools, databases, APIs, and services. Claude Code has native MCP support, meaning you can add servers to your .claude/settings.json and Claude automatically discovers and uses them.

How to Install MCP Servers

Most MCP servers install the same way. Add them to your Claude Code settings:

# Via Claude Code CLI
claude mcp add <server-name> -- npx -y <package-name>

# Or edit ~/.claude/settings.json directly
{
  "mcpServers": {
    "server-name": {
      "command": "npx",
      "args": ["-y", "package-name"]
    }
  }
}

Project-specific servers go in .claude/settings.json at the repo root. Global servers go in ~/.claude/settings.json. Claude Code also supports MCP Tool Search, which lazy-loads server tools on demand and reduces context usage by up to 95%.

Quick Comparison

ServerCategoryInstallBest For
memory-mcpMemorynpx -y memory-mcpPersistent identity & learnings
Context7Contextnpx -y @upstash/context7-mcpUp-to-date library docs
GitHubDev Toolsnpx -y @modelcontextprotocol/server-githubPRs, issues, repo management
FilesystemDev Toolsnpx -y @modelcontextprotocol/server-filesystemFile ops outside project dir
PostgreSQLDatabasenpx -y @modelcontextprotocol/server-postgresQuery production databases
SQLiteDatabasenpx -y @modelcontextprotocol/server-sqliteLocal database queries
FetchWeb/APInpx -y @modelcontextprotocol/server-fetchRead web pages & APIs
PlaywrightWeb/APInpx -y @playwright/mcp@latestBrowser automation & testing
Brave SearchWeb/APInpx -y @modelcontextprotocol/server-brave-searchPrivate web search
SlackProductivitynpx -y @modelcontextprotocol/server-slackTeam communication
LinearProductivitynpx -y streamlinearIssue tracking & project mgmt

Memory & Context Servers

The most impactful category. Without memory servers, Claude Code starts every session from scratch—no knowledge of your decisions, preferences, or past work.

memory-mcp

Persistent memory for AI agents. Stores learnings, identity patterns, preferences, and session state in a local SQLite database using FTS5 full-text search. Your agent remembers who it is, what it's learned, and what patterns it's observed—across every session.

claude mcp add memory-mcp -- npx -y memory-mcp
  • Best for: Agents that need to remember decisions, preferences, and identity across sessions. Especially powerful for long-running projects where context accumulates over weeks.
  • How it works: Uses SQLite FTS5 instead of vector embeddings—zero dependencies, instant startup, and 46MB less bloat than embedding-based alternatives. Semantic search through text indexing, not heavyweight ML models.
  • Limitations: Local-only storage by default (no cloud sync between machines). Text-based search, not vector similarity—great for structured knowledge, less suited for fuzzy semantic queries across thousands of documents.

Context7

Fetches up-to-date documentation and code examples for any programming library. Instead of relying on Claude's training data (which may be months old), Context7 pulls the latest docs directly from source.

claude mcp add context7 -- npx -y @upstash/context7-mcp
  • Best for: Working with libraries that update frequently. When you need accurate API signatures, not hallucinated ones. Especially valuable for Next.js, React, and fast-moving frameworks.
  • How it works: Resolves a library name to a Context7-compatible ID, then queries a curated index of documentation and code snippets. Results include reputation scores and snippet counts.
  • Limitations: Coverage depends on what's been indexed. Niche or very new libraries may not be available. Adds latency to queries since it fetches externally.

Sequential Thinking

An official MCP reference server that gives Claude a structured thinking tool. It can break complex problems into sequential steps, revise earlier thoughts, and branch into alternative approaches.

claude mcp add thinking -- npx -y @modelcontextprotocol/server-sequential-thinking
  • Best for: Complex debugging, architecture decisions, and multi-step reasoning where you want Claude to show its work explicitly.
  • Limitations: Less useful with Opus extended thinking already enabled, since Opus does this natively. Most valuable on Sonnet or Haiku where built-in reasoning is shallower.

Development Tool Servers

Connect Claude to your development infrastructure. These servers let Claude manage repos, track issues, and operate on files directly.

GitHub MCP Server

Full GitHub integration—create and review PRs, manage issues, search repositories, read file contents, and handle branches. Claude can interact with your GitHub repos as naturally as you do.

claude mcp add github -- npx -y @modelcontextprotocol/server-github

# Requires GITHUB_TOKEN environment variable
export GITHUB_TOKEN=ghp_your_token_here
  • Best for: Managing PRs and issues from within Claude sessions. Code review workflows where Claude reads the PR diff, checks related issues, and posts review comments.
  • Limitations: Requires a personal access token with appropriate scopes. Claude Code already has gh CLI access built in, so this server is most valuable for structured workflows rather than simple git operations.

Filesystem MCP Server

Secure file operations with configurable directory access. Read, write, search, and manage files and directories with granular permission controls.

claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir
  • Best for: Giving Claude access to directories outside the current project. Useful for monorepos, shared config directories, or when you need Claude to read reference files elsewhere on disk.
  • Limitations: Claude Code already has native file access within the working directory. This server is mainly useful for explicitly granting access to additional paths with clear boundaries.

Git MCP Server

Provides git operations through MCP—clone repos, view diffs, manage branches, read commit history. An official reference server from the MCP project.

claude mcp add git -- npx -y @modelcontextprotocol/server-git
  • Best for: Environments where you want structured git access rather than raw shell commands.
  • Limitations: Claude Code already runs git commands natively through its shell. This server adds value mainly in restricted environments where direct shell access is limited.

Database Servers

Let Claude query and analyze your data directly. Powerful for debugging, data analysis, and understanding production state.

PostgreSQL MCP Server

Connect Claude to PostgreSQL databases. Run queries, inspect schemas, and analyze data through natural language. Supports connection pooling for production use.

claude mcp add postgres -- npx -y @modelcontextprotocol/server-postgres postgresql://user:pass@localhost/dbname
  • Best for: Debugging data issues, exploring schemas, writing and testing queries, and data analysis tasks. “Show me all users who signed up in the last week with failed payments” just works.
  • Limitations: Be careful with production databases—Claude can run any query the connection string allows. Use a read-only connection string or a read replica for safety. No built-in query approval workflow.

SQLite MCP Server

Query and manage SQLite databases. Lightweight, zero-config, and perfect for local development databases, analytics files, or any .db file on disk.

claude mcp add sqlite -- npx -y @modelcontextprotocol/server-sqlite /path/to/database.db
  • Best for: Local development databases, analyzing exported data, working with embedded databases, and prototyping data models.
  • Limitations: SQLite only—if your production database is Postgres or MySQL, this won't help with production debugging. No connection pooling (not needed for SQLite's single-file model).

Web & API Servers

Give Claude the ability to read web pages, call APIs, automate browsers, and search the internet.

Fetch MCP Server

Fetches content from URLs and converts HTML to markdown for Claude to process. Simple but essential—lets Claude read documentation, API responses, and web content.

claude mcp add fetch -- npx -y @modelcontextprotocol/server-fetch
  • Best for: Reading API documentation, checking deploy status pages, fetching JSON from REST endpoints, and pulling content from public web pages.
  • Limitations: No JavaScript rendering—if the page requires JS to load content, you'll get an empty or partial result. Use Playwright for dynamic pages. No authentication support for private resources.

Playwright MCP Server

Full browser automation through MCP. Control a real browser, take screenshots, fill forms, click buttons, and extract data from JavaScript-rendered pages.

claude mcp add playwright -- npx -y @playwright/mcp@latest
  • Best for: E2E testing, scraping dynamic content, debugging frontend issues visually, and any task that requires interacting with a real browser.
  • Limitations: Heavier than Fetch—launches a full browser instance. Slower startup and higher resource usage. Requires Playwright browsers to be installed ( npx playwright install).

Brave Search MCP Server

Privacy-first web search. Claude can search the web for current information, research topics, and find documentation without tracking.

claude mcp add brave-search -- npx -y @modelcontextprotocol/server-brave-search

# Requires BRAVE_API_KEY environment variable
export BRAVE_API_KEY=your_key_here
  • Best for: Research tasks, finding current information, checking if a bug has been reported, finding package versions and compatibility info.
  • Limitations: Requires a Brave Search API key (free tier available with rate limits). Search results aren't always as comprehensive as Google for niche technical queries.

Productivity Servers

Connect Claude to your team's communication and project management tools. Let your coding agent understand the broader context of what the team is working on.

Slack MCP Server

Read and send Slack messages, search channels, summarize threads, and manage notifications. Claude can pull context from team conversations and post updates.

claude mcp add slack -- npx -y @modelcontextprotocol/server-slack

# Requires SLACK_BOT_TOKEN and SLACK_TEAM_ID
export SLACK_BOT_TOKEN=xoxb-your-token
export SLACK_TEAM_ID=T0123456789
  • Best for: Pulling context from team discussions into coding sessions. “What did the team decide about the auth migration in #engineering?” Getting answers without tab-switching.
  • Limitations: Requires a Slack app with bot permissions configured for your workspace. Message posting capabilities mean you should be careful—Claude could send messages to channels if instructed. Set appropriate permission scopes.

Linear MCP Server

Manage Linear issues directly from Claude. Search, create, update issues, add comments, and query project status. Keeps your coding flow connected to project management.

claude mcp add linear -- npx -y streamlinear

# Requires LINEAR_API_KEY environment variable
export LINEAR_API_KEY=lin_api_your_key_here
  • Best for: Linking code changes to issue tracking. Claude can read the issue description, implement the feature, and update the issue status—all in one flow.
  • Limitations: Linear-specific—doesn't work with Jira, Asana, or other project management tools. Requires API key with appropriate permissions.

Our Picks: The Essential Stack

You don't need every MCP server. Most developers get the biggest impact from a focused set. Here's what we recommend based on how you work:

The Solo Developer Stack

  • memory-mcp — Your agent remembers your decisions, coding style, and project context across sessions. This is the single highest-impact server.
  • Context7 — Never get outdated API docs again. Essential for fast-moving frameworks.
  • Fetch — Read documentation and API responses. Lightweight, zero-config.

The Team Developer Stack

  • Everything in the Solo stack, plus:
  • GitHub — PR reviews, issue triage, and repo management without leaving Claude.
  • Linear (or your issue tracker) — Connect code to tickets.
  • Slack — Pull team context into coding sessions.

The Full Stack Developer Stack

  • Everything in the Team stack, plus:
  • PostgreSQL — Debug data issues and explore schemas in natural language. Use a read-only connection.
  • Playwright — Visual debugging and E2E testing through Claude.
  • Brave Search — Research current solutions, check package compatibility, find docs.

Tips for Managing MCP Servers

  • Enable Tool Search. With many servers installed, Claude Code's MCP Tool Search lazy-loads tools on demand. This keeps your context window clean—Claude only loads the tools it needs for the current task.
  • Use project-level settings for project-specific servers. Database connections and project management servers should go in .claude/settings.json. Global utilities like memory and search go in ~/.claude/settings.json.
  • Read-only database connections. Always use read-only credentials for production databases. Claude can and will run whatever queries the connection allows.
  • Check the MCP Registry. The official MCP Registry catalogs publicly available servers. New servers ship regularly.
  • Don't over-install. Each server adds tools to Claude's context. Start with the essentials and add more only when you have a specific need. More servers doesn't always mean more capable.

Your Agent Deserves to Remember

MCP servers give Claude Code new capabilities, but memory is foundational. Without it, every session starts from zero—no knowledge of your architecture, your decisions, or your coding style. Substratia's memory tools fix that. memory-mcp gives your agent persistent memory that survives every restart.

Explore Memory Toolsmemory-mcp on GitHub
S
Substratia Team
Building developer tools for Claude Code

Related Posts

Best MCP Memory Servers Compared
Compare the top MCP memory servers for Claude and AI assistants
The Ultimate Guide to Claude Code Context Management
Master context windows and maximize your AI coding sessions