How your MCP server should call your API on the user's behalf
Blog post from WorkOS
WorkOS Connect’s OAuth 2.0 token exchange lets an MCP server call an API on a user’s behalf without forwarding a token issued for the MCP server, which the API should reject because its audience is wrong. The MCP server instead uses its own first-party Connect application credentials to exchange the user’s access token for one with the API’s URL as its audience; both services must be configured as Resource Indicators, and token exchange must be enabled. The resulting token preserves the user and organization identity, records the exchanging app in the `act` claim, and can carry the same or fewer scopes than the original token, but cannot outlive it or gain a refresh token. The API should verify the token’s signature, issuer, audience, trusted actor, and required scopes, while the MCP server can use introspection to check whether the original token is still active. Common exchange errors relate to app eligibility, unconfigured resources, unavailable scopes, expired or revoked user authorization, invalid requests, or disabled token exchange. WorkOS Connect supports client registration, sign-in and consent, audience-bound tokens, and exchange, while the application remains responsible for its API’s authorization checks.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| MCP | 50 | 16,128 | 1,625 | 232 | +35% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.