What is MCP?
Model Context Protocol (MCP) lets AI assistants like Claude call Govly tools on your behalf. Govly’s MCP server lives athttps://app.govly.com/api/mcp and acts as you: it only returns data your Govly account is allowed to see, scoped the same way as the web app.
More tools are being added regularly. To start, connected clients can list the workspaces you have open in Govly.
Choose a connection method
There are two ways to connect:- OAuth — recommended whenever your client supports it. You sign in through Govly once and the client handles the rest. No tokens to copy or rotate.
- Personal API key — for clients that only accept a static bearer token, or when you want a stable credential you can paste into a config file.
Option 1: Connect with OAuth
When you add Govly’s MCP URL to a client that supports OAuth, the client redirects you through Govly sign-in and stores the connection for you.- In your AI client, add a custom MCP connector.
- Enter the server URL:
https://app.govly.com/api/mcp. - The client opens a browser tab and sends you through Govly sign-in.
- Approve access on the consent screen.
- Ask the assistant something like “What workspaces do I have in Govly?” to confirm the connection.
- Your Govly account must already exist. The OAuth flow does not create new users.
- You can revoke access anytime in Govly under Settings → API → Connected Apps.
Option 2: Connect with a personal API key
For clients that take a static bearer token, create a personal API key in Govly and add it to your client’s MCP config.Step 1: Create a personal API key
- Go to Settings → API → API Keys in Govly.
- Under Personal API Keys, click New key.
- Name it after the client you’ll use it with.
- Copy the
gk_...token immediately. It is only shown once.
Step 2: Configure your client
Most MCP clients accept a config block like this:Step 3: Verify the connection
list_workspaces.
Shared or service accounts
If your team wants a shared agent or service account to connect to MCP, email support@govly.com. Include:- The display name and email you’d like for the service account.
- A short description of what it will be used for.
Using MCP across multiple Govly organizations
This only applies if you belong to more than one Govly organization.Personal API key
When you connect to Govly via personal API keys in multiple organizations, create and use keys from each organization.OAuth
When you connect to Govly via OAuth, that connection is tied to the organization you were viewing when you signed in. Switching organizations inside Govly afterward does not change what the connection can see. If you need MCP to work for a second organization, add a separate Govly connector from that organization.Managing your connections
- Personal API keys — manage under Settings → API → API Keys.
- OAuth-connected apps — manage under Settings → API → Connected Apps.
Troubleshooting
- 401 Unauthorized — Your API key is wrong, revoked, or expired. Create a new key and update your client config.
- 401 “Grant has been revoked” — Your OAuth grant was revoked. Reconnect from your client.
- A tool you expected is missing — Some tools require Enterprise API access. Contact your Govly admin if you think you should have access.