MCP Integrations
Connect external services to LM Studio via MCP.
LM Studio now supports MCP with OAuth. Seamlessly connect integrations that require authentication without copying tokens or configuring headers. Simply add your integration, log in via browser, and its tools are instantly available to your models in LM Studio.
How it works
When you add an OAuth-backed MCP integration, LM Studio:
- Opens a browser window to the service's authorization page
- Stores the token securely after you approve access
- Makes the server's tools available in chat
From that point on, your model can call tools from that service just like any other MCP server.
Connecting with your own OAuth credentials
Some services require you to bring your own OAuth app, either because they don't support dynamic client registration, or because they need a specific redirect URL whitelisted in their developer portal.
In these cases, add an auth object to the server entry in mcp.json. When configuring your OAuth app, use the following callback URL:
http://127.0.0.1:33389/mcp-oauth-callback{
"mcpServers": {
"oauth-server": {
"url": "https://api.example.com/mcp",
"auth": {
"CLIENT_ID": "TEST_CLIENT_ID",
"CLIENT_SECRET": "TEST_CLIENT_SECRET"
}
}
}
}