Provides tunneling capabilities to expose the MCP server publicly through ngrok's service for external access and ChatGPT integration
Index Network MCP Server
A Model Context Protocol (MCP) server that enables ChatGPT integration with Index Network's discovery protocol.
Features
๐ Quick Setup: One-command startup with included script
๐ง MCP Tools: Health check, echo, and search functionality
๐ Public Access: Built-in ngrok integration for external access
๐งช Testing: MCP Inspector integration for easy testing
Quick Start
Prerequisites
Node.js 18+
ngrok account (sign up free)
Installation
Run Everything at Once
The script will:
Start the MCP server on port 3002
Create an ngrok tunnel (public URL)
Launch MCP Inspector for testing
Display all URLs and process IDs
Manual Setup (Alternative)
Configuration
Environment Variables
Variable | Description | Default |
| Server port |
|
| ngrok auth token | Required |
| Environment |
|
ngrok Setup
Get your authtoken from ngrok dashboard
Add to
.env:NGROK_AUTHTOKEN=your_token_here
Available Tools
health-check
Check server status.
echo
Echo back a message.
search
Search functionality (demo implementation).
ChatGPT Integration
Run the startup script:
./src/start-mcp.shCopy the ngrok URL from the output (e.g.,
https://abc123.ngrok-free.dev/mcp)Configure ChatGPT to use this MCP server URL
Development
Project Structure
Adding Tools
Building
Troubleshooting
Script won't run
Make executable:
chmod +x src/start-mcp.shCheck Node.js version:
node --version(needs 18+)
ngrok errors
Verify authtoken in
.envCheck if port 3002 is available
MCP Inspector issues
Ensure server is running first
Use correct URL:
http://localhost:3002/mcp
Links
License
MIT License - see LICENSE for details.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables ChatGPT integration with Index Network's discovery protocol through MCP tools. Provides quick setup with ngrok tunneling for public access and includes health check, echo, and search functionality.