Jules MCP Server
Provides tools for interacting with the Google Jules API: listing connected sources, creating and listing coding sessions, and approving execution plans.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Jules MCP Server List my available Jules sources"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Jules MCP Server
An MCP server implementation for Jules API, allowing LLMs to interact directly with your automated Jules workflows.
Prerequisites
Jules API Key: Get your API Key from the Jules Settings page.
Note: Currently, Jules is migrating its authentication methods. If you receive a
401 Unauthorizedindicating "API keys are not supported by this API," you may need to wait for further updates from the Jules platform or supply an OAuth2 Token in place of the API key if supported.
Related MCP server: Jules MCP Server
Installation & Usage
You can use the server directly via npx without installing it globally:
npx jules-mcpEnvironment Variables
The server requires the following environment variables:
JULES_API_KEY: Your Jules API Key or Authentication Token.
Configuration for Claude Desktop
To use this server with the Claude Desktop app, you need to add it to your configuration file.
Config file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following to your configuration, replacing <YOUR_API_KEY> with your actual Jules API key:
{
"mcpServers": {
"jules": {
"command": "npx",
"args": [
"-y",
"jules-mcp"
],
"env": {
"JULES_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Available Tools
The server implements the following tools:
jules_list_sources: Find the IDs of sources (e.g., connected GitHub repos) you can interact with.jules_create_session: Start a new Jules coding session with a specific prompt and source context.jules_list_sessions: Check the status and output links (e.g., Pull Requests) of your sessions.jules_approve_plan: Approve a session's execution plan (if it was created withrequirePlanApproval=true).
Development
# Install dependencies
npm install
# Build the project
npm run build
# Run via MCP Inspector for testing
npm run inspectorAvailable Tools
4 toolsjules_approve_planApprove Jules Session PlanADestructive
Approve the plan for a session that requires explicit approval.
If you created a session with requirePlanApproval: true, Jules will pause and wait for approval. Call this tool to allow it to proceed.
Args:
sessionId (string): The session ID or name (e.g., "sessions/12345" or "12345").
response_format ('markdown' | 'json'): Output format (default: 'markdown').
Returns: Status of the approval.
Inputs: sessionId (required), response_format.
jules_create_sessionCreate Jules SessionA
Starts a new automated coding session with Jules.
Use this after identifying a target source (e.g. from jules_list_sources). This creates a session where Jules will work on the given prompt.
Args:
prompt (string): The user's goal or instructions.
source (string): The full name of the source (e.g., "sources/github/owner/repo").
startingBranch (string): The starting branch for the repository (default: "main").
automationMode ("AUTO_CREATE_PR" | "NONE"): Whether to automatically create a PR (default: "NONE").
title (string): The title of the session.
requirePlanApproval (boolean): If true, implicitly requires an approve_plan call to proceed.
response_format ('markdown' | 'json'): Output format (default: 'markdown').
Returns: The created session details.
Inputs: title (required), prompt (required), source (required), automationMode, +3 more.
jules_list_sessionsList Jules SessionsARead-onlyIdempotent
List your Jules sessions to check their status or view outputs (e.g. PR links).
Use this to poll for the completion of a session or to find an active session ID.
Args:
pageSize (number): Maximum results to return (default: 20)
pageToken (string): Page token for retrieving the next page
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: A list of sessions, including their state and any outputs.
Inputs: pageSize, pageToken, response_format.
jules_list_sourcesList Jules SourcesARead-onlyIdempotent
List your available sources connected to Jules (e.g., GitHub repositories).
Use this to find the name of the source you want to work with before creating a session.
Args:
pageSize (number): Maximum results to return (default: 20)
pageToken (string): Page token for retrieving the next page
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: A list of sources available to the user.
Inputs: pageSize, pageToken, response_format.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct action on a distinct resource: listing sources, listing sessions, creating a session, and approving a plan. There is no plausible way to confuse jules_list_sources with jules_list_sessions given the explicit descriptions, and the descriptions even state the intended ordering (list sources before creating a session).
All four tools follow the same jules_<verb>_<noun> snake_case pattern (list_sources, create_session, list_sessions, approve_plan). The shared server prefix is applied uniformly, so an agent can predict tool names reliably.
Four tools is on the thin side, but each one maps to a genuine step in the Jules workflow (discover source, start session, poll status, gate on plan approval). It is slightly under-scoped rather than bloated, with no filler tools.
The core create-and-monitor lifecycle is covered, but there is no way to inspect a single session directly, read the plan before approving it, cancel/stop a running session, or send follow-up instructions. These are notable gaps that could leave an agent stuck once a session is created with plan approval required.
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Build, validate, test-run and publish AIOS workflows from Claude Code, Codex, Cursor or VS Code.
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects AI coding assistants to the Jules API for autonomous coding sessions. Enables creating and managing coding sessions, GitHub integration, plan approval workflows, and real-time activity tracking directly from your IDE.6MIT
- FlicenseAqualityDmaintenanceEnables LLM applications to interact with Google's Jules AI coding assistant to manage repositories, coding sessions, and pull requests. It allows users to programmatically create tasks, approve plans, and communicate with the assistant during active coding sessions.9-
- AlicenseBqualityNot gradedmaintenanceExposes Google Jules AI capabilities for automated coding tasks, including session management, code reviews, and unified diff handling. It enables users to create sessions, approve plans, and synchronize AI-generated code changes with GitHub repositories.26Apache 2.0
- AlicenseAqualityDmaintenanceEnables interaction with Google Jules API to automate software development tasks, such as managing sources, sessions, and activities for AI-powered coding assistance.920 npm6MIT