Looker MCP serverand Python AI tasks
qbash hosts a Looker MCP server you can use in Claude, ChatGPT, Codex, Cursor, Grok Bot and Muse. Developers use qbash Tasks to write cloud-hosted Python functions that pair Looker with models such as Claude and GPT.
Add the qbash MCP
Use Looker from Claude Code, Codex, Cursor and other MCP clients. Connect Looker in qbash, and your agent can work with its data and build Tasks that call it.
claude mcp add --transport http qbash https://mcp.qbash.com/mcp
Then run /mcp in Claude Code and sign in with qbash.
- List the LookML models and the explores in each one
- Read an explore's dimensions, measures and filters with their types and descriptions
- Run a query against an explore and return the rows as JSON, CSV or another format
- Save a query definition and get back its id and a shareable explore URL
- Run a saved query by its id
- Return the SQL that Looker generates for a query
Write a Looker task in Python
A qbash Task is a Python function hosted in the cloud. Python is the runtime and defines the process, and built-in inline prompts run on leading models such as Claude, GPT, Gemini and Grok.
Run a Task on a schedule, from an HTTP request or when a connected app sends an event. Your agents and chat tools call it over MCP.
Each run is logged with its inputs and results, and you can turn data logging off for any Task. Every Task has version control, and each run is locked to the version it ran.
Summarize last week's sales by category from a Looker explore
run_inline_query totals last week's sales and orders by product category on the order_items explore. An inline prompt writes a short note on the biggest categories and the ones with the most returns.
result = qbash.integrations.looker.run_inline_query(
model="thelook",
view="order_items",
fields=["products.category", "order_items.total_sale_price", "order_items.order_count", "order_items.returned_count"],
filters={"order_items.created_date": "last week"},
sorts=["order_items.total_sale_price desc"],
result_format="json",
limit=50,
)
rows = result["data"]
if rows:
note = qbash.ai.run_prompt(
slug="looker-category-sales",
variables={"categories": json.dumps(rows)},
)
qbash.output(note)
else:
qbash.output("The order_items explore returned no sales for last week.")
Sample run_inline_query response
{
"status": "success",
"data": [
{
"products.category": "Outerwear & Coats",
"order_items.total_sale_price": 48213.4,
"order_items.order_count": 412,
"order_items.returned_count": 31
},
{
"products.category": "Jeans",
"order_items.total_sale_price": 39870.15,
"order_items.order_count": 655,
"order_items.returned_count": 72
},
{
"products.category": "Sweaters",
"order_items.total_sale_price": 27104.9,
"order_items.order_count": 389,
"order_items.returned_count": 18
}
]
}
Custom MCP server
Build a custom MCP server with Looker
Create a hosted MCP server that combines Looker tools with your other connectors, Tasks and memory folders. You choose each tool it exposes, so a server can share Looker reads with write tools left off.
Share the server with your team, and each person adds it to the client they already use.
Looker MCP questions
Does Looker have an official MCP server?
Google runs a Looker-managed MCP server, in preview as of November 2026, at your instance URL plus /mcp for Looker-hosted instances, with OAuth sign-in and tools that a Looker admin turns on. Google's open source MCP Toolbox for Databases also has a Looker mode you run yourself. The qbash server is a separate one that puts Looker on one URL with your other connectors and exposes the same methods to Python Tasks.
What does the Looker connector need to connect?
Your Looker instance URL and an API client ID and secret, which an admin creates for a user under Admin, Users. Every method runs with that user's roles, so give the user access only to the models and folders the connector should see.
Can the Looker MCP server change content?
Four methods write: create_query, create_look, create_dashboard and create_dashboard_element. Give the API user a role without save permissions if chat users should only run queries and read content.
Related analytics connectors
Build a Looker task
Write it in Python with AI steps, or describe it to your coding agent through the qbash MCP.