Documentation Menu

Model Context Protocol (MCP)

Morph IDE natively integrates the Model Context Protocol (MCP), an open architectural standard allowing enterprise engineering teams to safely extend autonomous agent intelligence beyond localized filesystem boundaries.

Connecting External Datasets & APIs

By registering MCP Server connections in your workspace preferences, autonomous agents in Gather and Agent modes gain direct, secure lookup authorization to interact with enterprise infrastructure and external productivity tools in real time during conversation loops:

Data & Storage

🗄️Database Schema Introspection

Grant agents read-only MCP access to local development container instances of Postgres, SQLite, MySQL, or MongoDB to inspect live schema tables during development.

⚡ Workflow ExampleWhen tasked with creating a new Prisma or TypeORM migration, the agent executes an MCP query to inspect live table column constraints, ensuring zero syntax hallucinations or schema field mismatches.
Project Governance

🎯Jira & Linear Ticket Tracking

Connect Jira, Linear, or GitHub Issues MCP servers directly to your editor workbench, bringing issue tickets straight into your conversational debugging loops.

⚡ Workflow ExampleMention an issue tag directly in sidebar chat (e.g., @LIN-402). The agent queries Linear via MCP, parses the exact bug reproduction steps and acceptance criteria, and commences codebase bug tracing immediately.
Enterprise Knowledge

📚Internal Wikis & OpenAPI Specs

Provide autonomous agents live lookup access to proprietary company Confluence wikis, microservice OpenAPI / Swagger specifications, or private UI Storybook component catalogs.

⚡ Workflow ExampleWhile integrating an authentication microservice, Morph queries your internal Swagger MCP endpoint to retrieve current required headers and JSON request payload structures before generating API wrapper code.

Configuring MCP Servers

Connecting an MCP server is straightforward. In Morph IDE, open Morph Settings (from the status bar or gear menu), navigate to the MCP tab, and click "Add MCP Server". This opens your global configuration file located at ~/.morph-ide/mcp.json.

Global Configuration File (~/.morph-ide/mcp.json)

Register servers under the standard mcpServers root key. Morph automatically detects changes and updates active tools in real time:

{
  "mcpServers": {
    "postgres-local": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost:5432/dev_db"]
    },
    "linear-issues": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-linear"],
      "env": { "LINEAR_API_KEY": "lin_api_secret_key..." }
    }
  }
}

Once configured, each registered server appears in your MCP Settings List where you can view active tool signatures, inspect operational status, and toggle individual servers on or off with a single click.

🛡️
Enterprise Security Compliance: MCP server interactions execute locally via isolated background processes (using standard input/output streams or local HTTPS). External schemas and token credentials remain strictly confined to your environment and are never transmitted to third-party telemetric analytics platforms.