MCP Framework for MATLAB Production Server

Calling deployed MCP tools in MATLAB Production Server

Available on Github

Access the official MCP Framework for MATLAB Production Server on GitHub. This repository contains the source code, documentation, and examples to help you implement MCP tools with MATLAB Production Server.

The repository includes:

  • Complete source code for the MCP Framework
  • Implementation examples
  • Documentation on setup and configuration
  • Best practices for deploying MCP tools
View on GitHub

How to configure Visual Studio Code with GitHub Copilot to use the example MCP Tool

  1. Add a new MCP Server:
    • For Windows Ctrl-Shift-P
    • For Mac Cmd-Shift-P
  2. choose MCP: Add Server
  3. Select HTTP
  4. Enter the URL of the MCP tool https://production-server-demo.mathworks-workshop.com/primeSequence/mcp
  5. Enter a name for your MCP tool
  6. Choose Global as the scope
  7. This will add your MCP tool the mcp.json configuration file
  8. Go to GitHub Copilot chat and make sure you are in Agent mode
  9. You can click on the gear icon in the GitHub Copilot chat input window to confirm that your MCP Server is in the list that will be queried
  10. Ask GitHub Copilot to perform a task that requires the MCP tool e.g. Generate me the first 10 prime numbers in a gaussian prime sequence
  11. After thinking for a while GitHub Copilot should call your MCP tool and display the result in the chat window

How to configure ChatGPT to use the example MCP Tool

⚠️ Note: You need a paid ChatGPT account
  1. Launch ChatGPT on web or desktop
  2. Go to Settings->Connectors
  3. Add a new connector / MCP server
  4. Enter the http endpoint of the example MCP tool e.g. https://production-server-demo.mathworks-workshop.com/primeSequence/mcp
  5. Start a new chat
  6. Prompt ChatGPT to perform a task that requires the MCP tool e.g. Generate me the first 10 prime numbers in a gaussian prime sequence
  7. After thinking for a while, and searching its list of installed tools (this might take a while) ChatGPT should call your MCP tool and display the result in the chat window

How to configure Claude to use the example MCP Tool

⚠️ Note: You need a paid Claude account
  1. Launch Claude on web or desktop
  2. Go to Settings->Connectors
  3. Add a custom connector
  4. Give it a name and enter the http endpoint of the example MCP tool e.g. https://production-server-demo.mathworks-workshop.com/primeSequence/mcp
  5. Start a new chat
  6. Prompt Claude to perform a task that requires the MCP tool e.g. Generate me the first 10 prime numbers in a gaussian prime sequence
  7. After thinking for a while, and searching its list of installed tools (this might take a while) Claude should call your MCP tool and display the result in the chat window