TunnelGPT MCP Core
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TunnelGPT MCP CoreShow me the contents of hello.txt in the project folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TunnelGPT MCP Core
Project-scoped file tools, confirmed writes and bounded MCP transport for local AI workflows.
MIT license · TunnelGPT · Built by Carlos Rodera
Give an MCP integration access to a chosen project folder, with explicit limits on what it can read and change. This is the open-source core used by TunnelGPT, the desktop application that connects local projects to ChatGPT.
Use it to build project file tools, inspect the implementation behind TunnelGPT, or contribute improvements to the shared core.
What is included
Component | What it does |
Path authorization | Resolves paths inside configured roots, applies deny rules, and supports rejecting symlinks and hard links. |
File tools | Reads and searches text, walks project files, and applies bounded file operations. |
Confirmed writes | Previews changes and binds confirmation tokens to the proposed operation. Read-only mode refuses writes. |
MCP protocol | Message framing, discovery, header validation and protocol adapters. |
Local transport | HTTP over a Unix socket, with limits on request size, concurrent work, queue length and timeouts. |
The library leaves authentication, user approval, process/container isolation and remote tunnel setup to the host application. A local socket does not establish a ChatGPT connection by itself.
Related MCP server: MCP Local Filesystem Server
Try it locally
Requires Node.js 22.12 or later. The Unix-socket example is intended for macOS and Linux.
git clone https://github.com/carlosrodera/tunnelgpt-mcp-core.git
cd tunnelgpt-mcp-core
npm ci --ignore-scripts
npm run build
mkdir -p /tmp/tunnelgpt-core-demo
printf 'Hello from a local project.\n' > /tmp/tunnelgpt-core-demo/hello.txt
node examples/project.mjs /tmp/tunnelgpt-core-demo /tmp/tunnelgpt-core-demo/mcp.sockThe example exposes read_project_file for that folder. In a second terminal:
curl --unix-socket /tmp/tunnelgpt-core-demo/mcp.sock \
http://localhost/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2025-11-25' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"read_project_file","arguments":{"path":"hello.txt"}}}'Stop the server with Ctrl+C. Restart it with --edit to also expose create_project_file. Its first call returns a proposal. Applying it requires the same arguments, its confirmation token and confirmed: true. The host must obtain the user's approval before confirming a write.
See the complete example for configuration and tool registration, and the tests for executable read, write and transport cases.
Use it as a dependency
Install the first release from its immutable commit:
npm install --save-exact --ignore-scripts \
https://github.com/carlosrodera/tunnelgpt-mcp-core/archive/761ac168655099fa0c67e69e3474783abf7c93de.tar.gzThis is @tunnelgpt/mcp-core version 0.1.0, also tagged v0.1.0. The package includes compiled JavaScript and TypeScript declarations. It is currently distributed through GitHub; the command above does not depend on an npm registry publication.
Exports include PathAuthorizer, SafeReader, AtomicWriter, SignedTokenCodec, UnixHttpMcpServer and createCoreMcpHandler. The entry point lists the public exports. Keep the resolved integrity in your lockfile when updating.
Core and desktop application
This repository is licensed under MIT. You can study, modify, use and redistribute this code under that license.
TunnelGPT adds the commercial desktop interface, guided setup, native integration, account and license services. Those components are maintained separately. The current MIT scope covers the code in this repository; it does not promise that every future commercial feature will be published here.
TunnelGPT is independent software and is not affiliated with, sponsored by or endorsed by OpenAI.
Contribute
Issues and pull requests are welcome. Useful contributions include reproducible bugs, clearer examples, path-boundary tests, protocol interoperability and improvements to the public API.
Before opening a pull request, run:
npm ci --ignore-scripts
npm run check
node scripts/verify-package.mjs
npm audit --audit-level=lowInclude a regression test for behavior changes and rebuild dist when changing TypeScript. CI checks types, functional tests, reproducible build output, dependency licenses and CodeQL. Keep proposals focused on the public core and use sample projects with no credentials or private files.
Created and maintained by Carlos Rodera. Feedback and contributions help shape the project.
License
MIT. Original copyright notices are retained. Dependency notices are listed in THIRD_PARTY_NOTICES.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Project management MCP for AI agents with safe task reads and writes.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Browse and manage files in your Moxt AI workspace from any MCP client.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables file system operations such as listing, reading, and creating files within a scoped local project directory. It provides a secure way to manage local files through standardized MCP tools built with FastMCP.-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides secure access to local file system operations.-
- AlicenseNot gradedqualityBmaintenanceA sandboxed file-access MCP server for Claude Desktop, enabling safe read/write access to selected directories with atomic verified writes, undo, and read-only git operations.1MIT
- FlicenseNot gradedqualityCmaintenanceExposes a secure, path-confined bridge to a local workspace and git remotes, enabling MCP clients to search, read, write, reset files, and perform git operations.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/carlosrodera/tunnelgpt-mcp-core'
If you have feedback or need assistance with the MCP directory API, please join our Discord server