drio
Open app

MCP Core Library

Source

Contains the business logic and MCP server ports.

Catalog onlyCatalog onlySTDIO

Overview

MCP Core Library is a Rust crate that contains the domain business logic and server ports for the MCP server, designed following hexagonal architecture principles.

To use the MCP Core Library, integrate it into your Rust project as a dependency and implement the defined interfaces for your specific application needs.

  • Contains domain business logic and ports for the MCP server. - Implements hexagonal architecture for clean separation of concerns. - Provides primary and secondary ports for input and output communication.
  1. Building server applications that require a clean architecture.
  2. Developing tools that interact with the MCP server through defined interfaces.
  3. Managing domain entities and types in a structured manner.

Add to your AI client

Use these steps to connect MCP Core Library in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-core-mcpstudio": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-core-mcpstudio"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-core-mcpstudio": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-core-mcpstudio"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-core-mcpstudio": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-core-mcpstudio"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-core-mcpstudio": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-core-mcpstudio"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-core-mcpstudio": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-core-mcpstudio"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-core-mcpstudio": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-core-mcpstudio"
      ]
    }
  }
}

FAQ

What programming language is MCP Core Library written in?

MCP Core Library is written in Rust.

Is MCP Core Library open source?

Yes! MCP Core Library is available under the MIT license.

How can I contribute to MCP Core Library?

You can contribute by submitting issues or pull requests on the GitHub repository.