MCP
Overview¶
MCP lets an AI assistant, such as Claude or GitHub Copilot, read your Dr Migrate estate, assessment and migration planning data. You can then ask the assistant questions about your data in your own words.
- Access is read only. The assistant cannot change, delete or create anything. Write access is coming soon.
- The assistant acts as you. It sees the data your Dr Migrate role permits, plus cost and TCO data, which every signed-in person can read.
- It cannot see another user's data.
- You can connect up to 5 assistants, and disconnect any of them at any time.
An admin must turn on MCP for your instance, and give you MCP access. When MCP is on, MCP shows at the bottom left of Dr Migrate, next to Sign Out. See MCP in Administration.
Security¶
Connecting an assistant does not share your password with anyone.
- You sign in on Dr Migrate's own page, with your usual login. The assistant never sees your password.
- Nothing is connected until you check the application's name on the consent screen and click Authorize.
- The assistant's sign-in expires within 30 minutes and renews in the background. The connection ends when you disconnect it, when your password changes, when your account is disabled, or after 30 days without use.
- Every request an assistant makes is checked against your account and recorded under your name.
For the full model, see MCP Security and Data Flow.
Request Access¶
Click MCP at the bottom left of Dr Migrate. It is next to Sign Out. If you do not have MCP access, the page shows two lines. The first line is "MCP access is not turned on for you." The second line is "Ask your administrator to turn it on. One request is enough."
Click Request MCP access. The page then shows "Your request was sent to your administrator on" and the date. You do not need to send the request again.
When an admin approves the request, open the MCP page again to connect an assistant.
Connect an AI Assistant¶
Marketplace only: AI assistants connect only to a Dr Migrate server with a trusted SSL certificate. If your server does not have one yet, ask your administrator to add one in Admin > SSL Update (see Check the SSL Certificate). SaaS instances already have one.
Copy the Server Address¶
Click MCP at the bottom left of Dr Migrate and select Connect an assistant. Copy the Server address. This is the only value you need, and it is the same for every assistant. Your address is your Dr Migrate address followed by /mcp.
Add Dr Migrate to Your Assistant¶
Follow the steps for your application in the tabs below.
Sign In and Approve¶
A Dr Migrate window opens in your browser. Sign in if Dr Migrate asks you to. Check the application name and where it sends data, then click Authorize.
Claude Code¶
Run this command in a terminal. Replace the address with your server address.
claude mcp add --transport http drmigrate <server address>
Then approve the connection in the browser.
Claude Desktop¶
- Open Settings, then Connectors.
- Choose Add custom connector and paste the server address.
- Click Connect and approve access in the browser.
Claude Desktop connects from Anthropic's servers. It needs a Dr Migrate address that the internet can reach. A local address such as localhost does not work. Ask your administrator for your organization's Dr Migrate address.
GitHub Copilot (VS Code)¶
- Open the Command Palette and run MCP: Add Server.
- Select HTTP, then paste the server address.
- Name it Dr Migrate. A browser window opens. Approve access.
Cursor¶
- Open Settings, then MCP, then Add new MCP server.
- Select the HTTP transport and paste the server address.
- Approve access in the browser window that opens.
Codex¶
- Run these commands in a terminal. Replace the address with your server address.
codex mcp add drmigrate --url <server address> codex mcp login drmigrate - A browser window opens. Approve access.
The Codex app uses the same settings, so the server also shows in the app.
Certificate Errors on Marketplace¶
If your assistant cannot connect and shows one of these errors, it does not trust the certificate of your Dr Migrate server:
UNABLE_TO_VERIFY_LEAF_SIGNATUREUNABLE_TO_GET_ISSUER_CERT_LOCALLYSELF_SIGNED_CERT_IN_CHAINorDEPTH_ZERO_SELF_SIGNED_CERTCERT_HAS_EXPIRED
The server is reachable. Only the trust check fails. SaaS instances use a public certificate, so this happens only on Marketplace instances.
Why it happens
- Your Dr Migrate server uses a certificate from your company's own certificate authority, or a self-signed certificate.
- Claude Code and other Node-based assistants run on Node. Node uses its own list of trusted certificate authorities. It does not read the macOS keychain or the Windows certificate store. So Node can refuse a certificate that your browser accepts.
Fix it
- If the certificate is expired or self-signed, ask your administrator to install a trusted certificate in Admin > SSL Update. Self-signed certificates fail for every person.
- If the certificate comes from your company's certificate authority, ask your administrator for that authority's root certificate as a
.pemfile. It is a public certificate. It holds no private key. - Save the file in a fixed place, then tell Node to trust it with
NODE_EXTRA_CA_CERTS:macOS¶
Save the file, for example as
~/.config/drmigrate/company-rootCA.pem.For Claude Code, add this to
~/.claude/settings.json:"env": { "NODE_EXTRA_CA_CERTS": "/Users/<you>/.config/drmigrate/company-rootCA.pem" }For other Node-based tools, add this line to your shell profile (
~/.zshrc):export NODE_EXTRA_CA_CERTS="$HOME/.config/drmigrate/company-rootCA.pem"Optional: to make curl and browsers trust it too, run:
security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain-db ~/.config/drmigrate/company-rootCA.pemWindows¶
Save the file, for example as
C:\Users\<you>\drmigrate\company-rootCA.pem.Run this once in a terminal. It sets the variable for every new terminal and app:
setx NODE_EXTRA_CA_CERTS "C:\Users\<you>\drmigrate\company-rootCA.pem"For Claude Code you can also add it to
%USERPROFILE%\.claude\settings.json:"env": { "NODE_EXTRA_CA_CERTS": "C:\\Users\\<you>\\drmigrate\\company-rootCA.pem" } - Close and restart the assistant, then connect again and sign in when the Dr Migrate page opens.
Do not set NODE_TLS_REJECT_UNAUTHORIZED=0. It turns off the certificate check for every server your assistant talks to, not only Dr Migrate.
View and Disconnect Assistants¶
Click MCP at the bottom left of Dr Migrate and select Connected assistants. The page shows how many of your 5 assistants are connected. The list shows each application with the time it connected, its last request and its status. A connection that ended stays in the list, with a status such as "Disconnected".
To disconnect an assistant, click Disconnect on its row. Disconnecting takes effect at once. To use the assistant again, connect it again.
Every request an assistant makes is recorded against your name. If you do not recognize a connected application, disconnect it and tell your administrator.
Your connections also end when your Dr Migrate account is disabled or your password changes.
If Something Does Not Work¶
| Problem | What to do |
|---|---|
| The browser window did not open | Check your pop-up blocker, then run the add server step again. |
| Approval failed or timed out | Sign in to Dr Migrate in the same browser, then retry the connection. |
| The assistant says it cannot see any data | Your role may not permit that data. Ask your administrator to review your Dr Migrate role. |
| The connection stopped working | The address may have changed, your password changed, or an administrator turned off your access. Copy the server address again and reconnect. |
| The MCP page says MCP is turned off | Your administrator turned off MCP. No assistant can connect until an admin turns it on again. |
Messages¶
When Dr Migrate stops a request, the assistant shows a message with a code. Find the code below to see what to do.
| Code | Message | What to do | Who acts |
|---|---|---|---|
MCP-001 | You don't have MCP access yet. Ask your Dr Migrate administrator for it. | Request access | User, then admin |
MCP-002 | Your request for MCP access is with your administrator. | Wait, or ask the admin | Admin |
MCP-003 | You already have 5 assistants connected. Remove one on the MCP page, then try again. | Remove a connection | User |
MCP-004 | Your account isn't on {customer}'s user list. Ask one of their administrators to add you. | Ask a {customer} admin to add you in the portal | Admin |
MCP-005 | Sign in to Dr Migrate to connect your assistant. | Sign in to Dr Migrate, then connect again | User |
MCP-006 | Dr Migrate could not confirm your sign-in. Sign in again and retry. | Sign in again. If it keeps failing, ask your administrator to check the clocks of the web app and the MCP host | User, then support |
MCP-007 | This request names a different server than this one. Connect your assistant to this server's own address. | Use the address shown on the Connect page | User |
MCP-008 | This call has no valid sign-in. Connect your assistant again. | Reconnect | User |
MCP-009 | This approval did not come from the Dr Migrate consent screen, or the screen expired. Start the connection again from your assistant. | Start the connection again | User |
MCP-010 | Your account no longer has access to {customer}. | Ask a {customer} admin to add you back in the portal | Admin |
MCP-011 | Your Dr Migrate account has been removed. | Contact your administrator | Admin |
MCP-012 | Your Dr Migrate account is disabled. | Admin enables it, user reconnects | Admin |
MCP-013 | Your Dr Migrate account is locked. After it is unlocked, connect your assistant again. | Admin unlocks, user reconnects | Admin, user |
MCP-014 | Your password was changed after this assistant was connected. Connect it again. | Reconnect | User |
MCP-015 | Your Dr Migrate password has expired. Sign in to Dr Migrate to change it. | Change password | User |
MCP-016 | You must change your Dr Migrate password. Sign in to Dr Migrate to change it. | Change password | User |
MCP-017 | You declined to connect this assistant. | Connect again and approve, if you want it | User |
MCP-018 | The connection ended with an error. Start it again from your assistant. | Start the connection again | User |
MCP-019 | This sign-in was already used. Sign in again. | Sign in again | User |
MCP-020 | You removed this connection. Connect your assistant again to use it. | Reconnect | User |
MCP-021 | Your administrator removed this connection on {date}. | Ask the admin, then reconnect | Admin |
MCP-022 | Your administrator turned off your MCP access. | Request access again | Admin |
MCP-023 | This connection was not used for 30 days. Connect your assistant again. | Reconnect | User |
MCP-024 | This connection was stopped for safety because an old sign-in was used again. Connect your assistant again. | Reconnect | User |
MCP-025 | Dr Migrate could not record your sign-in. Try again in a few minutes. | Retry, then support | User, then support |
MCP-026 | Dr Migrate could not read your connections. Try again; if it keeps failing, give the reference to your administrator. | Retry, then administrator | User, then admin |
MCP-027 | Only a customer administrator or a super administrator can clear a block. | Ask an administrator | Admin |
MCP-028 | The block could not be cleared. Try again; if it keeps failing, contact support. | Retry, then support | User, then support |
MCP-030 | Your MCP access is read only, so {tool} cannot make changes. | Admin grants read and write | Admin |
MCP-031 | This connection was not given access to cost data. Connect again and allow cost data. | Reconnect | User |
MCP-032 | '{view}' is not a curated estate view. Call drm_list_estate_views for valid names. | List the views, then use a listed name | User |
MCP-033 | This view is listed but cannot be read yet. | Wait for the next Dr Migrate release | User, then support |
MCP-034 | Your Dr Migrate instance has not granted this view to MCP. | Admin applies the latest Dr Migrate database patch | Admin |
MCP-035 | This connection was ended. Connect your assistant again. | Reconnect | User |
MCP-036 | Dr Migrate does not know this account. | Ask your administrator | Admin |
MCP-037 | The MCP service is unavailable. Try again in a minute; if it keeps failing, give the reference to your administrator. | Retry, then administrator | User, then admin |
MCP-038 | Dr Migrate could not confirm this connection. Start it again from your assistant. | Start the connection again | User |
MCP-040 | MCP is turned off for this Dr Migrate instance. An administrator can turn it on in Settings > Instance Configuration. | Admin turns it on in Instance Configuration | Admin |
MCP-041 | This Dr Migrate instance is hibernated. An administrator can resume it in the Dr Migrate portal. | Resume in the portal | Admin |
MCP-042 | A data load is running. Try again when it finishes. | Wait | No one |
MCP-043 | No data has been loaded into this Dr Migrate instance yet. | Load data | Admin |
MCP-045 | The Dr Migrate application could not be reached from the MCP service. Try again in a minute. | Retry, then support | User, then support |
MCP-046 | This view belongs to another cloud and is not available on this Dr Migrate instance. | Use a view this instance lists | User |
MCP-047 | Dr Migrate could not tell which cloud this instance serves, so the request was refused. Ask an administrator to check the cloud setting. | Ask your administrator to contact support | Admin |
MCP-048 | Dr Migrate is not available right now, so the connection cannot be made. Try again in a few minutes. | Retry, then support | User, then support |
MCP-050 | Dr Migrate cannot confirm your access right now. Try again in a few minutes. | Wait | No one |
MCP-051 | Dr Migrate could not check your access. Try again. If it keeps happening, contact support. | Retry, then support | User, then support |
MCP-052 | The tool could not finish. Try again; if it keeps failing tell your administrator. | Retry, then administrator | User, then admin |
MCP-053 | This server has no tool with that name. Ask for the list of tools. | List the tools, then use a listed name | User |
MCP-054 | Dr Migrate could not check whether your access is blocked. Try again shortly. | Retry, then support | User, then support |
MCP-055 | No application matches '{application}'. Use drm_query_estate_view('Application_Overview') to browse names. | Browse the application names, then ask again | User |
MCP-056 | This connection was not granted the '{scope}' scope. Connect again and allow it. | Reconnect and allow the scope | User |
MCP-057 | Dr Migrate's internal service refused this request. This is a server setting, not your connection: reconnecting will not help. Ask an administrator to check the MCP configuration. | Administrator checks the MCP configuration | Admin |
MCP-058 | Dr Migrate could not serve '{feature}' right now. Try again; if it keeps failing, give support the reference. | Retry, then support | User, then support |
MCP-059 | '{feature}' is not an exposed Dr Migrate feature. | List the features, then use a listed name | User |
MCP-060 | Too many requests. Try again in {n} seconds. | Wait | No one |
MCP-061 | Dr Migrate is busy. Try again shortly. | Wait | No one |
MCP-062 | This connection was blocked after repeated rate-limit lockouts. Ask your administrator to clear it. | Admin clears the block | Admin |
MCP-063 | The token issued earlier to {client} is invalidated. | Reconnect | User |
MCP-064 | That page cursor is not valid: it was changed, made for another view, person or connection, or it has expired. Ask for the first page again. | Start again | User |
MCP-065 | This connection was ended because your assistant signed out. Connect it again to use it. | Reconnect | User |
MCP-066 | The assistant could not be registered: its redirect address must be https, http on this computer, or the app's own private scheme. | Fix the client | Developer |
MCP-067 | The assistant could not be registered: the details it sent are not valid client metadata. | Fix the client | Developer |
MCP-068 | This view does not exist on this Dr Migrate instance. | Admin applies the latest Dr Migrate database patch | Admin |
MCP-069 | The request was not accepted: {hint}. Change the request and try again. | Change the request | User |

