feat: Add user/session headers for MCP requests (like ENABLE_FORWARD_USER_INFO_HEADERS) Support forwarding user info headers to MCP endpoints #6757

Closed
opened 2025-11-11 17:05:12 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @alew3 on GitHub (Oct 24, 2025).

Check Existing Issues

  • I have searched all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

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

Originally created by @alew3 on GitHub (Oct 24, 2025). ### Check Existing Issues - [x] I have searched all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request. ### 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_
Author
Owner

@tjbck commented on GitHub (Oct 26, 2025):

You should use token forwarding instead.

@tjbck commented on GitHub (Oct 26, 2025): You should use token forwarding instead.
Author
Owner

@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.

@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.
Author
Owner

@Harii75 commented on GitHub (Nov 5, 2025):

@alew3 did you find any solution? im facing the same issue..

@Harii75 commented on GitHub (Nov 5, 2025): @alew3 did you find any solution? im facing the same issue..
Author
Owner

@alew3 commented on GitHub (Nov 7, 2025):

@Harii75 unfortunately not

@alew3 commented on GitHub (Nov 7, 2025): @Harii75 unfortunately not
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#6757