Skip to main content

Reference

MCP hub

To let your chat app read one folder through the Model Context Protocol (MCP), you need a compatible client and a server with access to that folder. The filesystem example below shows what to put in the connection.

MCP in plain English

  1. AI app (host)
  2. Client
  3. MCP server
  4. Files and tools

Host, client, server

The host is the AI app. Its client handles the connection to the server. The server is the program that provides access to files, web pages, or another service.

Tools, resources, prompts

A tool call can change something, such as renaming a file. A resource lets the app read something, such as the content of a note. A prompt gives you a saved request to run.

Local and remote servers

A local Fetch server still contacts each website it reads. For a file-only setup, start with Filesystem and give it one test directory.

stdio and Streamable HTTP

Choose stdio when the app should start a local program. Choose the HTTP connection when the server gives you a URL. A loopback URL reaches this computer. An older HTTP+SSE endpoint needs a host that supports that transport.

Safe first connection

  • File access. List the allowed directories and read a sample note before attaching your real folder.
  • Network access. For Fetch, try a public page and leave private-IP access disabled.
  • Credentials. For Everything, start the server without secrets in its environment. For an HTTP connection, confirm the destination before sending a token.

What a connection looks like

For this stdio example, put the command and folder argument in your host’s MCP configuration. The host starts Filesystem when it connects. For a server already running over HTTP, enter its URL instead. The command from the directory is:

npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/folder

The host runs one client for each server. The client talks to the server through the program's standard input and output (stdio), so nothing listens on a network port. Start with a test folder and ask the server to list its allowed directories before opening a file. The program runs with your account's permissions.

A Streamable HTTP server has an address instead. Before you connect, find out who runs it, whether it needs a sign-in, and whether it listens only on 127.0.0.1 or on every network interface.

The file that holds this command differs by app. The MCP guide shows where it goes in LM Studio and Open WebUI.