If your MCP client lets you set a request header, you can skip the OAuth sign-in and send an etlmcp API key instead: Authorization: Bearer $ETLMCP_API_KEY on every request to https://app.etlmcp.com/mcp. The same key works on the REST API, with the same scopes and the same rate limit. Send it only in that header, send only POST requests, and do not call the endpoint from a web page unless its origin has been allowed; each rule that a request breaks returns its own error.
Which clients should use a key
Chat apps with a one-click connector use the MCP address alone and ask you to approve access in etlmcp; that is OAuth, and you need no key. A key is for clients where you type the server address and headers yourself: coding assistants such as Claude Code, which takes a server URL and a --header option, your own agents, and scripts. The API page in the app shows the MCP address, the REST address and the exact header to use.
Creating a key
Open the API page in the app and create a key. You give it a name that says where it will be used, and, if you reach more than one workspace, you pick the workspace it acts in. A key acts in that one workspace only. Tick "May start runs" if the client should be able to start syncs; without it, the key can only read.
The secret starts with etk_ and is shown once, when you create it. etlmcp keeps only a hash of it, so copy it straight into your client's secret store or an environment variable such as ETLMCP_API_KEY. Later, the key list shows only the first characters of the secret, next to the key's name, workspace, scopes, creator, creation date and last use.
A key belongs to the person who made it. If that person leaves the workspace or the organization, the key is revoked for good. An owner can revoke any key of the organization; a member can revoke the keys they created. Anything using a revoked key stops working at once.
Scopes on MCP
A key has the read scope, and optionally run as well. With read alone, every tool that lists or reads works, including query_data. run_pipeline needs run. Called with a read-only key, it does not fail at the HTTP level: the tool result comes back marked as an error with this credential cannot start runs; create a key with the run scope. Give a read-only key to an assistant that should only answer questions.
A minimal request
etlmcp's MCP server is stateless and answers each request with one JSON response. It gives out no session ID and opens no event stream. The MCP specification's page on transports says a client must send JSON-RPC messages with POST and must list both application/json and text/event-stream in its Accept header, so send both even though etlmcp replies with JSON only.
curl -X POST https://app.etlmcp.com/mcp \
-H "Authorization: Bearer $ETLMCP_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}'
In Claude Code's JSON configuration, the same thing is a server entry of type http with the URL and an Authorization header. Keep the key in an environment variable rather than in the file itself.
The rules, in the order they are checked
etlmcp checks each request to /mcp in this order and stops at the first rule it breaks. The body of every refusal is a JSON object with one error field.
| Status | When | Error |
|---|---|---|
| 403 | The request carries an Origin header that is not on the server's allowed list |
origin not allowed |
| 400 | The query string has an api_key, access_token or token parameter |
send credentials in the Authorization header, never in the URL |
| 401 | There is no Authorization header, or the key is wrong, revoked or not a Bearer token |
invalid or missing credentials |
| 429 | The key has used up its requests for the minute | rate limit exceeded; retry later |
| 405 | The method is anything but POST | method not allowed |
What each rule means when you debug:
- Origin. This rule only looks at requests that carry an
Originheader. A request without one, such as the curl example above, never meets it. The allowed list is empty by default, and while it is empty, every request that carries anOrigingets 403. A browser page that is allowed also gets the CORS headers it needs; credentials mode is never allowed. - Query string. A key in the URL is refused even when it is valid. Move it to the header.
- Cookies. A session cookie is never read on
/mcp. Being signed in to the app in the same browser does not authenticate an MCP request: without the header, the answer is 401. - 401 header. The 401 carries a
WWW-Authenticateheader that points to etlmcp's OAuth metadata. The MCP authorization specification has clients read that header to find where to authorize, so a client that supports OAuth may start a sign-in when it sees it; if you meant to use a key, check that the header was actually sent. - Rate limit. Each key may make 120 requests a minute, REST and MCP counted together. A 429 carries
Retry-After, the number of seconds to wait. - Method. Because the order is fixed, a GET without a valid key gets 401, not 405. With a valid key, a GET gets 405 and an
Allow: POSTheader. A client that tries to open a stream with GET should treat the 405 as the specification's way of saying the server offers none.
Tool errors are not HTTP errors
Once a request passes the checks above, a tool that fails does not turn into an HTTP error. A missing pipeline, a run that is already going or a scope the key lacks comes back as a tool result marked as an error, with the reason in its text. Read those results, not the status code. The pages for each tool, under the MCP reference, list what each one accepts and returns; the REST API reference covers the same key on the REST side.