Connect an assistant with MCP
Set up a scoped token, point your MCP client at Zwely, and test a read-only tool.
MCP is a way for a compatible assistant or other program to call tools in Zwely. The connection runs with the permissions of an API token from one workspace. Give it access to only the work you intend to share.
Set up the connection
- In the intended workspace, open Settings → Connections → API access. Create a token with Read to start. Keep its value in your client’s secret storage.
- In an MCP client that supports a remote HTTP connection with a bearer token, use the server URL
https://zwely.com/api/v1/mcp. Configure its authorization header asBearerfollowed by your token. The screen for entering this depends on the client. - Check the MCP section of the developer reference for the supported request format, tool list, and example calls. Keep the token in the client’s connection settings instead of putting it in a chat prompt.

Test a read task first
- Have the client list the tools it can use, then try a read task such as checking the workspace storage. Check the response against the workspace in Zwely.
- If you need to allow a write task, decide which actions the tool should be allowed to take. Use a token with the matching permission and try the task on a draft you control before it touches a live campaign.
- Review the result in Zwely. If a client gets a permission error, check the selected workspace, scope, and token expiration. Revoke the token in API access when you stop using the client.

