← BLOG
Tutorial

Connect Claude Code to GitHub, Slack, and Databases with MCP

MCP lets Claude Code talk to external services. Connect it to GitHub, Slack, databases, and project management tools to automate your entire dev workflow.

MCP (Model Context Protocol) is how Claude Code connects to external services. Instead of being limited to your filesystem and terminal, MCP lets Claude Code read GitHub issues, post to Slack, query databases, and interact with project management tools. It turns Claude Code from a coding agent into a full development workflow agent.

What is MCP and how does it work?

MCP is an open protocol that lets AI tools communicate with external services through standardized "servers." Each MCP server exposes tools (actions the AI can take) and resources (data the AI can read). Claude Code discovers these tools automatically and uses them when they're relevant to your request.

Think of MCP servers as plugins: you install them once, and Claude Code gains new capabilities.

Which MCP servers are most useful for developers?

MCP ServerWhat it doesExample use case
GitHubRead/create issues, PRs, reviews"Check what issues are assigned to me"
SlackRead/send messages, search channels"Post a deploy notification to #releases"
PostgreSQLQuery and modify database"Show me the schema of the users table"
JiraRead/update tickets, create stories"Move PROJ-123 to In Progress"
LinearManage issues and projects"Create a bug report for the login issue"
NotionRead/write pages and databases"Update the sprint retro doc"
FigmaRead design files and components"What colors does the button component use?"

How do you install an MCP server?

Claude Code provides a built-in command for managing MCP servers:

bash
# Add an MCP server (HTTP transport — recommended)
claude mcp add github-server https://api.github.com/mcp

# Add a local MCP server (stdio transport)
claude mcp add postgres-server -- npx @modelcontextprotocol/server-postgres postgresql://localhost/mydb

# List installed servers
claude mcp list

# Remove a server
claude mcp remove github-server

How do you use MCP tools in practice?

Once an MCP server is installed, Claude Code uses its tools automatically when relevant. You don't need to specify which MCP server to use; just describe what you want:

bash
# Claude Code uses the GitHub MCP server automatically
> "What open issues are assigned to me?"
> "Create a PR for my current branch"

# Claude Code uses the Slack MCP server
> "Post to #engineering: Deploy v2.3 is live"

# Claude Code uses the PostgreSQL MCP server
> "Show me the last 10 users who signed up"
> "Add an index on the email column in the users table"
WARNING

MCP servers have access to external services. Only install servers you trust, and review their permissions carefully. Use read-only database connections when possible.

How do you configure MCP servers per project?

MCP servers can be configured at the project level (in .claude/settings.json) or globally (in ~/.claude/settings.json). Project-level configuration means the team shares the same integrations.

json
// .claude/settings.json (project level)
{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["@modelcontextprotocol/server-postgres", "postgresql://localhost/myapp"]
    },
    "github": {
      "type": "http",
      "url": "https://api.github.com/mcp"
    }
  }
}

Frequently asked questions

Is MCP specific to Claude Code?+
MCP is an open protocol created by Anthropic but designed for any AI tool. Other tools like Cursor and Windsurf are adding MCP support. Servers you install for Claude Code may work with other MCP-compatible tools.
Can I build my own MCP server?+
Yes. MCP servers are simple programs that expose tools and resources. Anthropic provides SDKs for Python and TypeScript. You can build a custom server that connects Claude Code to any internal service your team uses.
Are MCP connections secure?+
MCP servers run locally on your machine or connect via HTTPS. Data does not go through Anthropic's servers. However, the AI model does see the data returned by MCP tools, so be mindful of sensitive information in database queries.
What happens if an MCP server is unavailable?+
Claude Code gracefully handles unavailable servers. It will skip the MCP tools and fall back to other approaches. You'll see a warning that the server could not be reached.
ALL POSTSSTART FREE COURSE →