Jira Oauth Token Generator
Generate OAuth credentials for Jira MCP Server the easy way - for Claude, Cursor & MCP clients
Ask AI about Jira Oauth Token Generator
Powered by Claude Β· Grounded in docs
I know everything about Jira Oauth Token Generator. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
π Jira OAuth Token Generator
Purpose: Generate OAuth credentials for Jira MCP Server the easy way - just click and copy/paste!
π― What does this tool do?
Instead of manually implementing the complex OAuth 2.0 flow, you simply:
- Run this server
- Click "Connect to Jira"
- Get ready-to-use credentials for Jira MCP Server
Relationship between the two projects:

π’ Use Case: Enterprise Setup
Why should companies use this?
Problem: Companies want their dev/PM teams to use AI (Claude, Cursor) to interact with Jira, but setting up OAuth for each person is complex and time-consuming.
Solution: Deploy a centralized OAuth Token Generator:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Company Workflow β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β 1. IT Admin setup OAuth Generator (one-time only) β
β ββ Create Atlassian OAuth App for company β
β ββ Deploy internal server (or localhost) β
β ββ Set ALLOWED_WORKSPACE = "company-jira" β
β β
β 2. Employees self-serve credentials (few clicks) β
β ββ Open internal URL or localhost β
β ββ Click "Connect to Jira" β
β ββ Copy config JSON β
β ββ Paste into Claude/Cursor β
β β
β 3. Result β
β ββ β
Entire team can use AI + Jira integration β
β ββ β
Workspace validation ensures only company staff β
β ββ β
Tokens auto-refresh, no re-setup needed β
β ββ β
IT setup once, devs self-serve β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π OAuth Flow

β‘ Quick Start
1οΈβ£ Installation
git clone https://github.com/dongitran/Jira-Oauth-Token-Generator.git
cd Jira-Oauth-Token-Generator
npm install
2οΈβ£ Create Atlassian OAuth App
- Go to Atlassian Developer Console
- Create OAuth 2.0 integration
- Callback URL:
http://localhost:3001/auth/callback - Go to Permissions tab β configure each API:
- Jira API:
read:jira-user,read:jira-work,manage:jira-project,write:jira-work,read:board-scope:jira-software,read:sprint:jira-software,write:sprint:jira-software - User Identity API:
read:me - Jira API (offline):
offline_access
- Jira API:
- Copy Client ID and Client Secret
3οΈβ£ Configuration
Create .env file:
JIRA_ATLASSIAN_CLIENT_ID=your_client_id
JIRA_ATLASSIAN_CLIENT_SECRET=your_client_secret
JIRA_REDIRECT_URI=http://localhost:3001/auth/callback
PORT=3001
4οΈβ£ Run
npm start
# or: npm run dev (auto-reload)
# or: pm2 start ecosystem.config.js
π How to Use
Step 1: Authenticate
- Open http://localhost:3001
- Click "Connect to Jira"
- Login to Atlassian and grant access
Step 2: Copy config
The server will display JSON config like this:
{
"jira": {
"command": "jira-mcp-server",
"args": [
"--access_token", "eyJhbGc...",
"--refresh_token", "eyJhbGc...",
"--client_id", "...",
"--client_secret", "...",
"--cloud_id", "..."
],
"env": {}
}
}
Click "Copy Config" to copy.
Step 3: Use in MCP Client
Option A: Direct Command (Recommended)
Use the config from Step 2 as-is.
Option B: Global Installation (If Option A doesn't work)
Sometimes the jira-mcp-server command may not be found. In this case, install the package globally:
npm install -g @urcard/jira-mcp-server
Then use this config format instead:
{
"jira": {
"command": "node",
"args": [
"/Users/YOUR_USERNAME/.nvm/versions/node/v20.x.x/lib/node_modules/@urcard/jira-mcp-server/server.js",
"--access_token", "eyJhbGc...",
"--refresh_token", "eyJhbGc...",
"--client_id", "...",
"--client_secret", "...",
"--cloud_id", "..."
],
"env": {}
}
}
Note: Replace YOUR_USERNAME and v20.x.x with your actual Node version (>= 20). Find your path with:
which jira-mcp-server
# or
npm root -g
Configuration by Client
Claude Desktop:
# open config file
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
# paste into "mcpServers" section
# restart Claude Desktop
Cursor:
- Create
.cursor/mcp.jsonβ paste config β restart
VS Code:
# open config file
open ~/Library/Application\ Support/Code/User/mcp.json
# paste into "mcpServers" section
# restart VS Code
β Done! Tokens will auto-cache and refresh.
π Security Features
- CSRF Protection: UUID state tokens prevent attacks
- Workspace Validation: Only company employees can authenticate
- Token Caching: Tokens stored locally (~/.jira-mcp/), not sent over network
- Session Expiry: Auth sessions auto-delete after 10 minutes
- No Database: Stateless design, no sensitive data storage
π Related Links
- Jira MCP Server - MCP server that uses these credentials
- Model Context Protocol - Learn about MCP
π¨βπ» Author
dongtran β¨
π License
MIT
Made with β€οΈ to make your work life easier!
