Contents
MCP: The Basics and Solving the N×M Problem (Part 1)

MCP: A Well of Endless Possibilities for AI Agents

Anthropic's Model Context Protocol (MCP) changed the paradigm for how AI agents communicate with applications and data. It is not just another API standard; it is a revolution in how we think about integrating AI into workflows.

Imagine an AI agent that does not have to navigate complicated UIs, click 15 buttons or wait for slow API responses—a world in which the agent communicates directly with your application over a standardized protocol. That is MCP.

The problem: fragmented integrations

Before MCP, we had the classic N×M problem:

N AI applications × M tools = N×M custom integrations

Example:
5 AI models × 10 tools = 50 separate integrations

Each integration required: custom code for a specific AI model and tool, maintenance of both sides, documentation, testing and a security audit.

Result: Developers spent more time writing connectors than solving real problems.

Without MCP: connect Claude to Jira

typescript
// Custom Jira connector for Claude
class JiraConnector {
  async getTicket(ticketId: string) {
    const response = await fetch(`https://company.atlassian.net/rest/api/3/issue/${ticketId}`, {
      headers: {
        'Authorization': `Basic ${Buffer.from(`${email}:${apiToken}`).toString('base64')}`,
        'Content-Type': 'application/json'
      }
    });

    // Custom formatting for Claude
    const data = await response.json();
    return this.formatForClaude(data);
  }

  async updateTicket(ticketId: string, update: any) {
    // More custom code...
  }

  async createBranch(pattern: string, ticketData: any) {
    // GitHub API calls...
  }

  // ... 500+ lines of custom integration code
}

Problems:

  • ❌ Custom code for every tool (Jira, GitHub, Slack...)
  • ❌ Difficult maintenance when APIs change
  • ❌ Not portable to other AI models
  • ❌ Security risks in custom code

The solution: MCP as a universal adapter

MCP works like USB-C for AI agents:

Before:
Claude ─(custom)─> Jira
Claude ─(custom)─> GitHub
Claude ─(custom)─> Slack
ChatGPT ─(custom)─> Jira
ChatGPT ─(custom)─> GitHub
... (N×M integrations)

With MCP:
Claude ──(MCP)──> MCP Server Jira
ChatGPT ──(MCP)──> MCP Server Jira
Gemini ──(MCP)──> MCP Server Jira
... (N+M integrations)

With MCP: the same Jira connector

python
# MCP server for Jira - standardized protocol
from mcp.server import Server
from mcp.types import Tool

server = Server("jira-server")

@server.tool()
async def get_ticket(ticket_id: str) -> dict:
    """Get a Jira ticket by ID."""
    return await jira_client.get_issue(ticket_id)

@server.tool()
async def update_ticket_status(ticket_id: str, status: str) -> dict:
    """Change a Jira ticket status."""
    return await jira_client.transition_issue(ticket_id, status)

@server.tool()
async def create_branch_from_ticket(ticket_id: str, base_branch: str = "main") -> str:
    """Create a Git branch from the Jira ticket pattern."""
    ticket = await get_ticket(ticket_id)
    branch_name = f"feature/{ticket.key.lower()}-{slugify(ticket.summary)}"
    return await github_client.create_branch(branch_name, base_branch)

# The server runs; Claude/ChatGPT/Gemini can use these tools!

Advantages:

  • ✅ Standardized protocol
  • ✅ Works with any MCP-compatible client
  • ✅ Easy to maintain
  • ✅ Security best practices built in
  • ✅ Shareable with the community

Not just “favorite apps”: you can choose

Many AI tools say: “We integrate with Google Drive, Slack and GitHub.”

The MCP question is: why limit users to defaults? What if you want Jira, Asana, GitLab or an internal system? With MCP, the user chooses:

bash
# Install MCP servers for your needs
mcp install @modelcontextprotocol/server-jira
mcp install @modelcontextprotocol/server-gitlab
mcp install @my-company/server-internal-erp
mcp install @community/server-asana

Examples of available MCP servers: Google Drive for documents, Slack for messages and channels, GitHub/GitLab for repositories, PostgreSQL for queries, Puppeteer for scraping and automation, Jira/Linear for projects, Gmail for email and Docker for containers—plus thousands of community-built servers.

Why is MCP a “well of endless possibilities”?

1. Compatibility with any system

If a system has an API, you can build an MCP server: internal ERP systems, legacy databases, custom applications, third-party services, IoT devices—anything with an API.

2. Reusability

Build an MCP server once → it works with:
- Claude
- ChatGPT (when they add MCP support)
- Gemini (when they add MCP support)
- Custom AI agents
- Any MCP-compatible client

3. Community ecosystem

Thousands of developers build MCP servers:

bash
# Official Anthropic servers
@modelcontextprotocol/server-gdrive
@modelcontextprotocol/server-github
@modelcontextprotocol/server-slack

# Community servers
@community/server-linear
@community/server-notion
@community/server-figma

# Your own
@yourcompany/server-internal-crm

4. Scalability

You can combine dozens of MCP servers:

Claude ──┬──> MCP Server: Jira
         ├──> MCP Server: GitHub
         ├──> MCP Server: Slack
         ├──> MCP Server: PostgreSQL
         ├──> MCP Server: Docker
         ├──> MCP Server: Gmail
         ├──> MCP Server: Internal ERP
         ├──> MCP Server: Time Tracking
         └──> MCP Server: CI/CD Pipeline

In the next part, we will explore a real-world workflow from ticket to deployment, a complete MCP server example and security best practices.

All articles