About Jira Oauth Token Generator
Jira Oauth Token Generator is an MCP server in the Blockchain category: generate OAuth credentials for Jira MCP Server the easy way - for Claude, Cursor & MCP clients.
Install
git clone https://github.com/dongitran/Jira-Oauth-Token-GeneratorThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Jira Oauth Token Generator
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
🔐 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!
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.