Metal Framework MCP server

Integrates Metal Framework documentation search and code generation capabilities for graphics-intensive application development.
Back to servers
Provider
Aldrin Labs
Release date
Jan 09, 2025
Language
TypeScript
Stats
2 stars

This MCP server provides Metal Framework documentation search and code generation capabilities through the Model Context Protocol (MCP), allowing you to easily integrate Metal expertise into your development workflow.

Installation

You can quickly set up the Metal MCP server using the one-line installation command:

npx @modelcontextprotocol/create-server metal-mcp && cd metal-mcp && npm install && npm run build

This command:

  1. Creates a new server directory called metal-mcp
  2. Changes into that directory
  3. Installs necessary dependencies
  4. Builds the server

Configuration

After installation, you need to add the server to your MCP configuration:

{
  "mcpServers": {
    "metal": {
      "command": "node",
      "args": ["/path/to/metal-mcp/build/index.js"]
    }
  }
}

Make sure to replace /path/to/metal-mcp with the actual path where you installed the server.

Available Tools

The Metal MCP server provides the following tools:

Search Metal Documentation

The search_metal_docs tool allows you to search Metal Framework documentation and code examples using natural language queries:

Parameters:

  • query: Your natural language query about Metal Framework
  • limit: Maximum number of results to return (default: 3)

Generate Metal Code

The generate_metal_code tool helps you create Metal Framework code for common tasks:

Parameters:

  • task: Description of the Metal task to generate code for
  • language: Programming language (objective-c, swift, or metal)

Available Resources

The server also provides access to these Metal-related resources:

  • metal://docs/getting-started: Comprehensive guide for getting started with Metal Framework
  • metal://docs/best-practices: Best practices and optimization tips for Metal Framework

These resources can be referenced in your MCP interactions to provide additional context and information.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later