Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

The MCP Auth expires too fast

Fabian E_
Contributor
October 6, 2025

I'm using the Atlassian MCP in Claude Code, which is very helpful. Unfortunately, after a few minutes in Claude Code, it gets a 401 error, since seemingly the MCP OAuth token expires already after a few minutes. Claude Code cannot renew the token by itself, so i have to do that manually, and then continue work in Claude Code, which is pretty annoying. How can i get a token that is valid for at least multiple hours, or even weeks?

7 answers

5 votes
Jochem Berends
Contributor
December 2, 2025

Atlassian MCP is unusable due to the longevity of their auth tokens. Needing to reauthenticate twice a working day is horrible. Why can;t I inject my personal access token into it; that is longlived and properly in control. This is worthless. 

Is there any open source MCP for atlassian that has proper access to the API of jira (or confluence) that can use Personal Access API Tokens?

Praneeth Nallamalli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 29, 2025

how do you re-auth when the session expires? I've been restarting cursor each time

Liam Hall
December 30, 2025

twice a day? Try every 30 minutes or so. Sometimes I have to re-authenticate multiple times in the same session. I don't know why the auth can't persist for 7 days or something normal.  

Like Josh Wolfe likes this
Josh Wolfe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 7, 2026

I also get this <30 mins. I sometimes wonder if it happens due to subagents interacting with jira vs the main agent so it wants a reauth. sometimes it will be fine for a while, but more often than not, its reauth every 30 mins at most. 

3 votes
Akhil Bansal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 10, 2025

Same issue, I get authentican issue after few mins, I have to disable and re-enable mcp server in cursor editor again and again

 

3 votes
Pavel Shmelev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 6, 2025

I have a similar issue: when I'm trying to run two instances of Claude Code that rely on the same Atlassian user OAuth token on different machines it seems they expire instantly after the other MCP gets authenticated.

 

It would be nice to keep several sessions live so I can perform parallel workflow with JIRA on behalf of the same user but with different instances of Claude Code

Mayhew Park
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 28, 2025

This!

Like Josh Wolfe likes this
2 votes
Chloé Pilon-vaillancourt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 18, 2025

Hello! Here for this too - The OAuth token expires very fast. 

1 vote
Joe Bloggs
Contributor
January 2, 2026

This is still hopelessly broken ... 

1 vote
Dr Valeri Colon _Connect Centric_
Community Champion
November 13, 2025

@Fabian E_ @Liam Hall @Pavel Shmelev You can’t. The Atlassian MCP server only issues short-lived OAuth tokens in the current preview, and external clients like Claude Code can’t refresh them automatically. After a few minutes the token expires, leading to 401s. Atlassian hasn’t released long-lived or refreshable tokens yet, so manual reauth is the only option until the MCP auth flow is expanded.

1 vote
Liam Hall
October 17, 2025

Here for this too

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events