Skip to main content
Browse docs

Let AI assistants use your app with an MCP server

Build an MCP server around an app you already run so assistants like Claude and ChatGPT can look things up and take actions in it.

On this page

An MCP server lets AI assistants such as Claude and ChatGPT use your app on someone's behalf: look up records, check a status, or take an action you allow. 1904 can build one for an app you already have. It reads your app's code to find the actions worth offering, then builds the MCP server as a separate app that calls your app's API.

Your existing app is never changed or redeployed. 1904 reads its code without writing to it, and the MCP server gets its own new repository.

Before you start

  • An active plan and a free running-app slot. The MCP server is an app of its own, and building it starts it, so it takes one of your plan's running-app slots while it runs. If every slot is in use, the page says "Your plan runs 3 apps at a time, and all 3 are running." (with your plan's number); stop an app you aren't using, then try again. See "Running apps" in Plans, billing, and credits.
  • Your app's code, in your connected repositories or at a Git link 1904 can read.
  • The address where your app runs today, reachable from the internet.
  • A test account in your app, ideally. 1904 uses it to check that the MCP server really works against your app.

Start the MCP setup

  1. Select Existing App in the sidebar.
  2. Under 1. Where is your code?, choose Choose from my repositories or Copy from a Git link. An app that is already in 1904 can be used here too.
  3. Under 2. What would you like to do?, choose Add an MCP server.
  4. Select Continue to MCP setup.

The Bring your app to 1904 page with Add an MCP server selected under What would you like to do

Work through the steps

Your app's code. Select Analyze repository and let 1904 read your code. You can leave the page while it runs; 1904 lets you know when it's ready. Then select Continue to connect your app.

Connect to your app. Enter the Production URL your users use today. Add a Development URL if you have a staging or test copy. Select Check connection next to each address; you should see Reachable. If it says it can't reach your app, check the address and that your app accepts outside connections.

For each address you can add a test login, either Username and password or API key. Use a test account, not a real person's. 1904 keeps it encrypted, uses it only to check the finished server, and never shows it to the AI that builds it. Test logins are not saved in your browser, so if you reload the page, enter them again.

What assistants can do. Describe who will connect an assistant to your app and what they should be able to look up or do. Be clear about anything that changes data, such as creating an order or cancelling a booking, and anything that must stay read-only.

Build setup, Discovery and Review. Choose the delivery depth, answer the discovery questions about which actions to offer and whether any may change data, then review the plan and start the build. See Use discovery, design choices, and delivery depth for help with these steps.

After the build

The MCP server appears in your app list like any other app, and you follow its progress the same way. People who connect an assistant to it sign in as themselves, and the server calls your app as that person, so each person can only do what your app already lets them do.

Before you share it, connect an assistant yourself with a test account and check that each action does what you expect.