mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
feat: Add user/session headers for MCP requests (like ENABLE_FORWARD_USER_INFO_HEADERS) Support forwarding user info headers to MCP endpoints #6757
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alew3 on GitHub (Oct 24, 2025).
Check Existing Issues
Problem Description
Allow OpenWebUI to include user/session identifiers in MCP tool requests — similar to how it forwards user info headers (ENABLE_FORWARD_USER_INFO_HEADERS) for OpenAI-compatible endpoints — so that external MCPs can maintain user-specific memory and state.
Desired Solution you'd like
ENABLE_FORWARD_USER_INFO_HEADERS or another variable should enable forwarding of user data via headers to MCP
Alternatives Considered
No response
Additional Context
No response
@tjbck commented on GitHub (Oct 26, 2025):
You should use token forwarding instead.
@alew3 commented on GitHub (Oct 26, 2025):
@tjbck thanks for the feedback, how does token forwarding work? Searched on google but couldn't find anything.
What I'm trying to achieve is to forward an unique identifier (such as the ChatId) from OpenWebUI to the MCP via http streamable protocol so I can have memory with the same user between many interactions.
@Harii75 commented on GitHub (Nov 5, 2025):
@alew3 did you find any solution? im facing the same issue..
@alew3 commented on GitHub (Nov 7, 2025):
@Harii75 unfortunately not