Running MCP Server and API Together

I’m trying to run an MCP server alongside an API on a single Render service. The MCP requires access to a specific directory relative to the app’s root, and I’d like the API to be able to interact with files in that same directory.

What I’m trying to do:

  • Host an API to handle file upload and management.
  • Run the MCP server in the same environment, so it can work with those files.
  • Ensure both the API and the MCP process can run simultaneously and share access to the same local directory.

My Questions:

  1. What’s the best way to run both the API and the MCP server on a single Render service? (e.g., subprocess, threading, etc.)
  2. Is there anything I should be careful about when working with local directories on Render?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.