On this page
A connection URL can look like ordinary setup text, even when it contains a credential. If you paste it into a chat, issue, screenshot, or shared configuration, someone else may be able to use it. A tunnel adds another question: which other devices or people can reach the server behind it?
The risk depends on what the URL contains, the server’s permissions, and how the endpoint is exposed. Here’s how to assess those details and reduce avoidable exposure.
TL;DR
- If a URL contains a valid bearer token, treat the full URL like a password. Someone who obtains it and can reach the server may be able to act within that token’s permissions.
- A tunnel can make a server reachable from outside the local machine. It does not automatically mean everyone can connect; authentication and network restrictions still matter.
- Keep URLs and tokens out of shared messages, screenshots, repositories, and logs. Prefer a local connection when it meets the need, and restrict remote access when it does not.
- If a URL may have leaked, follow the server’s supported process to invalidate or rotate the credential, close unnecessary exposure, and review access records if available.
When is an MCP connection URL a credential?
A URL is sensitive when it contains a secret that can authenticate a request. For example, if the URL embeds a valid bearer token, possession of that token may be enough to authenticate—subject to the server’s rules, the token’s permissions, and whether the server is reachable. In that case, sharing the entire URL can be similar to sharing a password.
Not every MCP URL contains a token, and the URL alone does not tell you what access it grants. Check the relevant server and client setup instructions to learn whether credentials are included, how they are used, and what permissions they carry. Do not assume that a token grants unrestricted access, but do not assume it is harmless either.
Treat a credential-bearing URL as secret wherever it might be copied or retained. Common places to watch include shared configuration files, source repositories, terminal history, screenshots, support requests, and diagnostic logs. Redact the full secret-bearing value before sharing troubleshooting material.
What changes when a tunnel exposes the server?
A local connection is generally intended to be reached from the same machine. A tunnel can provide a route to a server from another device or network. That changes reachability: the server may now receive requests from beyond the local machine, depending on how the tunnel and network access are configured.
Reachability and authorization are separate. A tunnel does not by itself prove that the server accepts unauthenticated requests or is open to everyone. Conversely, a token does not protect a service from every risk if the token is exposed or the endpoint is reachable by parties who can use it.
Before using a tunnel, establish who can reach its endpoint and what authentication the server requires. If remote access is unnecessary, avoid exposing the endpoint. If it is necessary, use the access restrictions and authentication the specific setup supports, and grant only the permissions needed for the task.
How can you reduce exposure before connecting?
- Check what the connection details contain. Follow the server’s documentation to determine whether the URL includes a token or other secret, and what that credential permits. If the instructions are unclear, do not post the full URL while asking for help.
- Keep secrets out of shared places. Avoid putting credential-bearing URLs in public or broadly shared files, screenshots, chats, or repositories. Use the secret-handling method supported by your client and environment.
- Limit network reach. Prefer a local connection when it meets the task. If a tunnel is needed, restrict access to the intended users or devices using the controls available in that setup.
- Use only the access the task requires. Review the permissions documented for the server and client. Do not assume that every MCP connection is read-only or that different clients expose identical tools.
- Know how to respond to a leak. Before relying on a connection for sensitive work, find out how its credential can be disabled or replaced and where relevant access records can be reviewed, if those options exist.
These are general precautions, not claims that every MCP server or client offers the same controls. The actual options depend on the specific setup.
What should you do if a URL may have leaked?
Treat a potentially exposed credential as compromised until you know otherwise. Use the server’s documented process to revoke or rotate it, if supported. If the tunnel is no longer needed, close it. Check available access records for activity that may require follow-up, while remembering that logs may not provide a complete account of every request.
Removing the URL from a post or file can reduce further exposure, but it does not invalidate copies already made. If you cannot revoke or replace the credential yourself, contact the person who administers the server or connection. Do not assume a specific rotation, revocation, or audit-log feature exists; confirm it for that server.
What this means for Hemory MCP connections
Hemory’s Features page describes a standard MCP server capability and lists supported-agent examples. That public description does not specify whether a Hemory connection URL contains a token, how credentials are managed, whether a tunnel is required, or whether audit logs are available. Do not infer those details from general MCP precautions or from another client’s setup. Check the current instructions for the exact Hemory connection and client you use.
FAQ
Is every MCP connection URL a password?
No. Treat it like a password if it contains a valid bearer token or another secret that can authenticate requests. Check the server’s setup instructions rather than assuming every URL has the same format or access level.
Does using a tunnel mean anyone can access my MCP server?
Not necessarily. A tunnel can make the server reachable from elsewhere, but the actual access depends on the tunnel’s restrictions, network configuration, and the server’s authentication. Confirm who can reach the endpoint and what checks are required.
What if I cannot find a way to rotate a token?
Do not assume a rotation option exists. Check the server’s documented credential-management process or ask its administrator how to disable the exposed credential and establish a replacement. Review available access records if the setup provides them.
Before you connect
Check whether the URL carries a secret, who can reach the endpoint, and what the credential permits. Keep the connection details private, avoid an unnecessary tunnel, and confirm the server-specific response plan before sharing or deploying the setup.