Why teams split public and internal MCP servers in LiteLLM
LiteLLM sets available_on_public_internet per MCP server and mcp_internal_ip_ranges in general_settings, so external callers only see servers marked public. Teams need this split when some tools are meant for external AI clients such as ChatGPT or Claude Desktop, for example a documentation search or a public status lookup, while other servers reach internal systems such as ticketing, customer records, finance or source code and should be visible only from networks the organization controls. Before you apply the flag, list every registered MCP server and classify it by what data and actions it exposes, then confirm with the owners of each upstream system which ones may ever be reachable from outside your network.
The public flag is a visibility control, not a security boundary on its own. It decides which servers an external caller can discover, but it does not replace authentication of the caller, permissions by key, team or organization, or guardrails on tool inputs and outputs. A server marked public still needs its own access rules, and a server kept internal still needs them, because internal networks include contractors, VPN users and compromised hosts. Also confirm how your load balancers, reverse proxies and ingress set the client IP that LiteLLM sees, since an incorrect forwarding setup can place external callers inside an internal range and expose servers you meant to hide.
Plan the review as a standing process rather than a one-time setting. Each new MCP server registration should include an explicit decision on public visibility, a named owner who approves changes, and a test from outside your network that confirms the server is hidden or shown as intended. Ask your team to document the internal IP ranges, the reverse proxy configuration and the expected discovery results for each server, and to repeat the external test after upgrades or network changes. The LiteLLM documentation on MCP public internet access describes the settings, and you should confirm the exact behavior against the release you run.
How a request sees only the MCP servers its network allows
The diagram starts with an external client and an internal client, both sending requests to the LiteLLM gateway across the trust boundary between the internet and the internal network. The gateway checks the caller's source address against mcp_internal_ip_ranges in general_settings, then returns only the registered servers whose available_on_public_internet flag allows that caller. Check that internal ranges cover every internal path, including NAT and load balancer addresses, before you rely on the filter.
Caller network decides which registered MCP servers appear in the list.
Per-server visibility settings and when each fits
This table compares the three visibility choices for an MCP server in LiteLLM: marking it public, leaving it private, and relying on the internal IP ranges that define which callers count as internal. Read each row against the kind of tool you are registering, then check the mixed-server case before you decide. Visibility only controls what callers can discover, so access rules still belong in key, team and organization permissions.
| Setting | What it does | When it fits |
|---|---|---|
| available_on_public_internet true | Lets external callers see the server in discovery results | Low-risk tools such as public documentation search or unit conversion with no internal data |
| available_on_public_internet false or unset | Hides the server from external callers while internal callers still see it | Internal data sources, ticketing, HR, finance or anything tied to company systems |
| mcp_internal_ip_ranges | Defines which source addresses count as internal callers in general_settings | Any deployment that mixes public and private servers behind one gateway endpoint |
| Mixed gateway with both kinds of server | Each server is judged separately, so public and private tools can share one endpoint | Teams that want one client configuration for staff and external tools |
| Range set too broadly | Treats more callers as internal, which exposes private servers to networks you did not intend | Avoid by confirming the exact egress and VPN ranges with your network team |
| Visibility as the only control | Discovery is limited, but a caller who knows a server name may still reach it if permissions are not set | Never sufficient on its own; pair with key, team and organization access rules |
| Check after changes | Confirm from an external and an internal client that the tool list matches your intent | Run before and after each change, and again after gateway upgrades |
Configuring public and internal MCP servers step by step
This sequence takes a self-hosted LiteLLM gateway from a single shared MCP server registry to one where each server is either visible to external clients or limited to your internal networks. Each step ends with a check you can run before moving on.
Confirm the LiteLLM version and MCP support
The platform owner checks the running LiteLLM version against the releases page and confirms that the MCP gateway features and the public internet access settings described in the LiteLLM MCP public internet documentation exist in that build. Read the release notes for the version you run, since configuration keys can change between releases. Confirm that the proxy runs against PostgreSQL, because virtual keys depend on it, and that you can reach the admin UI or the configuration file used for the proxy. Done when you can name the exact version and show the MCP settings in its documentation match what your instance accepts.
Register each MCP server in the gateway
The platform owner registers every upstream MCP server with the gateway using the transport it supports, such as Streamable HTTP, SSE or stdio, and gives each one a clear server name. Keep a record of which servers are customer-facing tools and which touch internal systems such as ticketing, source control or HR data, because that record drives the public flag in the next step. Leave the public flag unset for now so that every server starts from the same default. Done when each server appears in the gateway's MCP server list and its tools can be listed from an internal client.
Set available_on_public_internet per server
For each server, the platform owner sets available_on_public_internet to true only for servers that external clients such as ChatGPT or Claude Desktop should discover, and leaves it false or unset for sensitive servers. Review this list with the security owner, since the flag decides what external callers can see, not what they are permitted to call. Record the decision and the reason next to each server in your configuration as code. Done when the list of public servers matches the approved register and no sensitive server is marked public.
Define mcp_internal_ip_ranges in general_settings
The platform owner lists the network ranges that count as internal under general_settings, using mcp_internal_ip_ranges. Start from the CIDR blocks your data center, VPC and VPN actually use, and confirm them with the network team instead of copying example values. Include the addresses of any load balancer, ingress controller or reverse proxy in front of the gateway, because requests may arrive from those addresses rather than from the client. Also confirm how the proxy reads the client address (for example, forwarded headers), since a wrong value makes every caller look external. Done when the ranges match the network inventory and the network team has signed off on them.
Restart the gateway and load the new configuration
The platform owner applies the configuration change and restarts the gateway so the public flags and internal ranges take effect, following the restart method used by the deployment (for example, a rolling update on Kubernetes). If more than one proxy instance runs, restart them all so they share the same configuration. Check the logs for configuration errors on startup and confirm the health endpoint responds. Done when every instance reports healthy and the logs show no errors about the MCP or general settings.
Verify from an internal network
From a client on an approved internal network, the platform owner lists the MCP tools available through the gateway and records which servers appear. Confirm that both public and sensitive servers are visible, since internal callers should see the full registry the key permits. Note the source address the gateway logs for this request so you can compare it with the external test. Done when the internal tool list includes every registered server the test key is allowed to use.
Verify from an external network and confirm the difference
From a client outside your internal ranges, such as a laptop on a home or mobile connection or a test host outside the network, the platform owner lists tools through the same gateway endpoint. Confirm that only the servers marked public appear and that the sensitive servers are absent. Compare the two lists with the register from the earlier step and keep the results with the change record. If a sensitive server appears externally, or an internal client is missing, return to the IP range or the public flag before going further. Done when the external list matches the public register and the difference from the internal list is exactly the sensitive servers.
Why client IP detection behind load balancers decides who sees what
The internal IP range check in LiteLLM only works if the address the gateway sees is the address of the real client. LiteLLM sets available_on_public_internet per MCP server and uses mcp_internal_ip_ranges in general_settings to decide which callers count as internal, so every server visibility decision depends on that one address. Behind an ingress controller, a cloud load balancer or a reverse proxy, the connection LiteLLM receives often comes from the proxy itself, not from the client. If that proxy address falls inside a range you treated as internal, every external caller may appear internal, and sensitive servers become visible to the internet. Before you rely on the range, trace the request path from the client to the LiteLLM pod and confirm, with your platform team, how each hop passes the client address forward and whether LiteLLM is configured to trust that forwarded information.
Confirm this in your own topology rather than assuming a default. Send test requests from a known external network and from a known internal network through the same public hostname your clients use, then check what address LiteLLM logs for each call. Repeat the test after any change to the load balancer, ingress or proxy layer, because a managed upgrade or a new hop can change the result without any change in LiteLLM. Record which forwarded headers each hop sets and which of them LiteLLM is allowed to read. Treat the header behavior you find as a fact of your environment to document, not as a property you can carry over from another deployment.
The range itself can fail in two directions. A range that is too broad, such as a large private block that includes your load balancer subnet or a shared corporate VPN pool, lets external or lower-trust callers pass as internal. A range that is too narrow hides servers from staff who really are inside the network, which often shows up as missing tools in a developer's client and invites workarounds. Ask your network team for the exact subnets that carry employee and service traffic, exclude proxy and load balancer addresses, and test both edges with an illustrative caller on each side. Plan a periodic review, since network changes often reach the gateway unnoticed.
Security and operational controls around public MCP servers
Marking a server public changes who can see it, not what they are allowed to do. The cards below cover the controls that should sit alongside the public flag, from permissions and tool selection to logging, change control and exposure of the gateway itself.
Visibility is not authorization
Setting available_on_public_internet makes a server visible to external callers, but it does not grant them permission to call its tools. Keep key-based and team permissions on every server, public or internal, so that a caller who can list a server still needs an explicit grant to invoke it. Check this with a test key that has no team membership and confirm that tool calls are refused.
Limit public servers to low-risk tools
Only expose servers whose tools are read-only, return non-sensitive data, and cannot change state in your systems. A public server that can create tickets, send messages or query customer records widens the blast radius of any misuse. Review each server's tool list before setting the flag, and keep write-capable or sensitive servers on internal ranges.
Treat public tool results as untrusted
Content returned by a public MCP server can contain injected instructions that the model may act on. Treat those results as untrusted input, and plan guardrails on tool results before the model receives them. Confirm which checks your LiteLLM version supports for MCP calls and test them with crafted tool output before going live.
Log who lists and calls each server
Record which key, user and team lists each MCP server and which calls each tool, along with the source network. Logs from public and internal callers should be distinguishable so that unusual external activity can be found quickly. Confirm the logging destination, the retention period and who can read the records before relying on them in an investigation.
Review the public flag in change control
Treat changing available_on_public_internet as a production change with a named approver, a reason and a rollback step. Add a check to the configuration review process so that a server cannot become public through an ordinary edit. Keep the configuration in version control so that every change to the flag has an author and a date.
Confirm admin UI and gateway exposure separately
The public flag controls MCP server visibility, not the exposure of the gateway itself. Check separately whether the admin UI, the proxy endpoint and the internal IP range settings are reachable from networks they should not reach. Test each path from outside your network after every change, and record the results alongside the configuration review.
Questions buyers ask about public and internal MCP servers in LiteLLM
What does it cost to expose some MCP servers publicly and keep others internal in LiteLLM?
Cost comes from the people doing the work, not from a LiteLLM license fee for this feature. The open-source proxy is MIT licensed for the code outside the enterprise/ directory, so the visibility settings themselves need no extra license. Costs fall into a one-time design and build phase (mapping servers, network ranges and owners, configuring available_on_public_internet and mcp_internal_ip_ranges, and testing from both sides) and recurring operations (reviewing new servers, updating ranges when networks change, and retesting after upgrades). Effort rises with the number of servers, the number of network zones, and how much your ingress and proxy setup has to change. Ask any partner for a quote built from a written scope that lists each server, each network zone and each test you expect.
How long does a first rollout take, and what sets the duration?
The duration depends on the written scope, so no fixed figure applies here. The main drivers are the number of MCP servers to classify, how many network zones and client paths you need to separate, whether your current LiteLLM deployment is already running on a supported release, and how quickly your network and security teams can confirm address ranges and reverse-proxy behavior. Approvals for public exposure often take longer than the configuration itself. A typical first rollout moves through inventory, design, configuration in a staging environment, testing from internal and external vantage points, and a controlled production change. Agree on milestones and acceptance tests before work starts.
What does our team need to provide before the work starts?
You need to provide three things before configuration begins. First, the network ranges that count as internal, such as office, VPN and data center egress blocks, written as CIDR ranges your network team owns. Second, an inventory of every MCP server registered in LiteLLM, with its transport, upstream owner and the data it touches. Third, a named owner for each server who can approve whether it should be public. Also provide the current LiteLLM version, how the proxy is exposed (load balancer, ingress or reverse proxy), and whether any client sits behind NAT or a corporate proxy, because these change which address LiteLLM sees. Missing ranges are the most common cause of sensitive servers appearing where they should not.
Can an internal team set this up alone?
Yes, a capable internal platform team can set this up, provided it has the skills to run LiteLLM, configure its general settings, and check what address the proxy sees behind your load balancer or ingress. The product documentation describes the two relevant settings, and the work is mostly configuration and testing. The risk is in the surrounding details: forwarded-address headers, proxies that rewrite source IPs, and ranges that change without anyone noticing. Teams that lack a reviewer for public exposure decisions often benefit from an outside review of the classification and the test plan. Decide early who signs off on each server marked public.
Does hiding an MCP server from the public internet replace authentication?
No. Visibility controls decide which servers a caller can see in the MCP server list, based on whether the server is marked public and where the request comes from. They do not replace authentication, authorization or the controls on each tool. A caller that can reach a public server still needs a valid LiteLLM key or other accepted credential, and each server still needs its own permission model. Treat visibility as one layer. Also check that the upstream MCP servers themselves do not accept direct calls that skip the gateway, since a visibility setting in LiteLLM does nothing to a server reached on its own address.
What does LiteLLM Enterprise add for MCP access control?
LiteLLM Enterprise adds access controls that are broader than visibility settings. Based on the supplied product documentation, Enterprise includes organization and team role-based access control, IP allowlisting, audit logs, and team-level guardrails and logging, along with SSO and SCIM beyond the free limit of five users from v1.76.0. These features complement the open-source visibility flags rather than replacing them. Confirm the exact MCP permission model available in your release with the vendor before you design around it, because MCP-specific controls change between versions. The LiteLLM buyer's guide and enterprise documentation are the right next reads for the licensing question.
How to prove sensitive MCP servers stay hidden from external callers
Proving that a sensitive MCP server is hidden from external callers means testing what each network can see, not trusting the configuration file. Run discovery from an external network and from an internal network against the same gateway endpoint, and list the tools each caller receives. The test should show that servers without available_on_public_internet set to public are absent from the external tool list, while the internal caller sees the servers it is meant to reach. Use an account or key that is valid in both cases, so the only variable is the network path.
Build the plan around the two settings that decide visibility: the per-server available_on_public_internet flag and the mcp_internal_ip_ranges list under general_settings. For each sensitive server, record the expected result before testing, then compare it with what the external and internal callers actually receive. Capture the request source address the gateway sees, because a misconfigured ingress or proxy header can make an external request appear internal. Confirm with your platform team how client IP is passed through your load balancer and ingress, and test with a source you control outside your internal ranges. Store each run with date, LiteLLM version, configuration version, caller location and the tool list returned, so the security team can review it as evidence.
Repeat the same test after every LiteLLM upgrade, after any change to ingress, load balancers, DNS or network policy, and after any edit to MCP server registration. These are the points where a flag can be ignored or an address range can shift without anyone noticing. Note clearly in the evidence that this test checks visibility only. It does not show that a hidden server rejects a direct call, that authentication is enforced, or that tools behave safely once a caller has access. Those controls need their own tests, such as the signed-JWT and access control checks covered elsewhere in this guide.
Phases from inventory to ongoing review
The rollout starts with an inventory of every MCP server registered in the gateway, where each server is classified as public or internal-only based on its data and its callers. Next, the team defines the internal network ranges that LiteLLM should treat as trusted, then sets the per-server public flag to match the classification. Verification happens from both networks, because a server that is hidden from an external client must also remain visible to internal callers. Ongoing review repeats this loop whenever servers, networks or client tools change.
Five phases from server inventory to recurring review of exposure settings.
How DeployOpen scopes and delivers public and internal MCP server settings
Public and internal MCP server visibility is set per server, and the mistakes usually come from unclear ownership of each server's classification and from untested network paths. The cards below follow the work in order, from a written scope through classification, configuration in your infrastructure, dual-network testing and ongoing support.
Written scope before any change
The engagement starts with a written scope that names the MCP servers in play, the LiteLLM instances they register on, the networks that count as internal, and who signs off on each classification. A written scope also fixes what is excluded, such as upstream server hardening, so the boundary of responsibility is clear before work begins. Ask for the scope document to list each server by name, not by category.
Server classification with your owners
Each MCP server is marked as public or internal-only based on what its tools can read or change, and that decision belongs to the team that owns the server and its data. DeployOpen facilitates the review and records the reason for each choice. Check that no server defaults to public because its flag was left unset in a shared configuration file.
Per-server flags and internal ranges
Visibility is set with available_on_public_internet on each server and with mcp_internal_ip_ranges in general_settings, so external callers only see servers marked public. The internal ranges must match the real addresses your gateway sees behind your load balancers and proxies. Confirm the ranges with your network team before rollout.
Dual-network visibility testing
Tests run from an external client path and from an internal host to confirm each server appears or is hidden as classified. They also cover tool lists returned to a client that connects through a reverse proxy, where the source address can change. A sensitive server that appears from outside is a release blocker, and the test evidence is kept with the change record.
Configuration in your infrastructure
The LiteLLM proxy, its database, Redis and configuration files run in the cloud accounts or data centers you control, and DeployOpen works through the change process your team already uses. Configuration is kept as code so each flag change has a review trail. Ask who holds the admin key and where the configuration repository is hosted.
Retainer support for upgrades
Visibility settings can change when LiteLLM is upgraded or when a new MCP server is registered, so the classification and network tests need repeating. DeployOpen offers retainer support for upgrades and for re-running the visibility tests after changes. Ask whether the retainer covers re-testing for each new server or only for version changes.

