SQL+JQL MCP for Jira
Turns JQL into SQL, and Jira Cloud into a relational database.
Query and manage your Jira Cloud data with SQL. Write the queries yourself in the built-in editor, or let your AI write them through the built-in MCP server, from Claude Code, OpenAI Codex or GitHub Copilot.
1. Standalone

SQL+JQL turns the Jira, Jira Software and Jira Service Management REST APIs into virtual tables with support for the industry-standard SQL language. It also supports native JQL to search for issues in SQL, and reuse all your JQL knowledge: get the best of both languages working together.
Virtual means that the tables are empty: they are filled in real time, from Jira's REST APIs, to answer each query, then thrown away. Zero data copy, and nothing to install in your Jira site.
Secure by design:
- SQL+JQL runs as the calling user, with that user's Jira permissions. There is no way around them.
- No SQL ever reaches your Jira site: only calls to its REST API. Everything else is virtual.
Example of a real SQL+JQL query: the hours each person logged on the bugs I reported that were moved to Done this month.
SELECT u.[displayname] AS [person], COUNT(DISTINCT i.[key]) AS [bugs], SUM(w.[timespentseconds]) / 3600 AS [hours]
FROM issue i
JOIN issueworklog w ON w.[issueid] = i.[id]
JOIN user u ON u.[accountid] = w.[authorid]
WHERE i.[jql] = 'reporter = currentUser() AND issuetype = Bug AND status CHANGED TO Done AFTER startOfMonth()'
GROUP BY u.[displayname]
Note the JQL query, in plain text, in the WHERE clause, and currentUser() inside it: SQL+JQL always knows who is signed in to Jira.
2. MCP

SQL+JQL comes with its own MCP server, so you don't need to know SQL to get the most out of it: the AI writes state-of-the-art SQL+JQL queries on behalf of the current user.
User Chat
Ask your Jira Cloud site anything in natural language, from the chat of Claude Code, OpenAI Codex or GitHub Copilot, and get answers grounded in live Jira Cloud data.
Try asking:
- "Which of my issues are still open in the active sprint, and how many story points are left?"
- "Which components of project ABC have the most unresolved bugs?"
- "Create a sub-task for each issue of this epic, assigned to me."
Put SQL+JQL in your vibe coding workflow
Connected to your vibe coding environment, SQL+JQL brings:
- Fewer tokens, less latency: the Jira data crunching and the fetch loops move out of the LLM. Don't pay an LLM to pretend to be a relational database.
- Fewer hallucinations: connected to a source of truth, the AI has no reason to make up data.
- No black boxes: the AI thinks out loud. The SQL it writes shows how it understood your intent, so its reasoning can be checked.
- Fewer mistakes: the AI doesn't have to pick the right tool from a long MCP catalog: it only writes SQL+JQL. The queries run outside the LLM, so the AI doesn't spend its effort on plumbing (pagination, a different API for each kind of data, each with its own details, data types and error handling), nor act as a relational database, fetching records, joining them and filtering them in a loop.
In the vibe coding loop, SQL+JQL lets the AI create sample data and verify the results after every cycle. That work comes off your plate, so you can focus on higher-value tasks, while quality goes up and development cycles get much faster.
🚀 Setup (2 minutes)

Requirements
- A Jira Cloud site.
- An Atlassian API token of the account the MCP will run as: id.atlassian.com > Security > API tokens.
- Node.js 18 or later on your machine, for Claude Code and Codex.
Steps
Install the extension from the VS Code Marketplace and open a folder.
Configure Connection: in the Command Palette (Ctrl+Shift+P), run SQL+JQL MCP for Jira: Configure Connection and give your site (https://your-site.atlassian.net), your email and the API token. The connection is checked with Jira, then saved in jira_auth.config at the folder's root, with the token encrypted. Keep this file out of version control.
Connect your MCP client:
- GitHub Copilot (VS Code 1.101 or later): nothing to do. The server appears among Copilot's MCP servers.
- Claude Code: the extension writes the server into
.mcp.json at the folder's root. Start Claude Code in that folder and approve the sql-jira server when it asks. If you declined it once, run claude mcp reset-project-choices there and start Claude Code again.
- OpenAI Codex: if you use Codex (
~/.codex exists), the extension adds the server to ~/.codex/config.toml, in a block of its own.
The extension keeps these entries up to date each time VS Code starts. SQL+JQL MCP for Jira: Copy MCP Config for Claude Code and ... for Codex copy them to the clipboard.
Claude Code and Codex run the server on the machine where VS Code runs the extension. With VS Code connected to WSL, run them inside WSL too.
📝 SQL Editor
For when you want to run the queries yourself: open a .jsql file (or run SQL+JQL MCP for Jira: New Query), complete tables and columns with Ctrl+Space (or a dot after an alias), and run the statement under the cursor, or the selection, with Ctrl+Shift+E (Cmd+Shift+E on macOS). The results panel filters, copies a cell with a click, and exports to CSV.
-- Every table, and the columns of one
SHOW TABLES;
SHOW COLUMNS FROM issue;
-- My open issues, with their status
SELECT i.[key], i.[summary], s.[name] AS [status]
FROM issue i JOIN status s ON s.[id] = i.[statusid]
WHERE i.[jql] = 'assignee = currentUser() AND statusCategory != Done'
ORDER BY i.[key];
-- Comments of a project's issues: a child table is joined to its parent
SELECT i.[key], COUNT(c.[id]) AS [comments]
FROM issue i JOIN issuecomment c ON c.[issueid] = i.[id]
WHERE i.[jql] = 'project = ABC'
GROUP BY i.[key];
Names are lowercase; write columns in brackets: i.[key].
⚙️ Settings
sql-jira.maxRows: the most rows a statement may read of one Jira table, in the editor and in the MCP server (default: 5,000; 0: no limit).