NoteGenNOTEGEN.

MCP Configuration

MCP (Model Context Protocol) configuration guide to extend AI capabilities through standard protocols, calling external tools and services.

What is MCP

MCP (Model Context Protocol) is an open standard protocol that allows AI applications to connect to external data sources and tools in a unified way. Through MCP, NoteGen can call external services to extend the AI assistant's capabilities.

Enable MCP

Find MCP configuration in the settings page and toggle on "Enable MCP" to enable this feature.

Configure MCP Servers

NoteGen supports two types of MCP server connection methods:

Standard I/O (stdio)

Suitable for locally running MCP servers, communicating through standard input/output.

Configuration Parameters:

  • Name: Used to identify this MCP server
  • Command: Command to start the MCP server, e.g., node, python, ./server
  • Args: Array of parameters passed when starting the server, e.g., ["server.js"]
  • Environment Variables: Optional, set environment variables for server runtime

Example Configuration:

{
  "name": "Local File System",
  "command": "node",
  "args": ["path/to/server.js"],
  "env": {
    "API_KEY": "your-api-key"
  }
}

HTTP (SSE)

Suitable for MCP servers accessed via network, using server-sent events for communication.

Configuration Parameters:

  • Name: Used to identify this MCP server
  • URL: HTTP address of the MCP server
  • Headers: Optional, set HTTP header information for requests

Example Configuration:

{
  "name": "Remote Service",
  "url": "https://example.com/mcp",
  "headers": {
    "Authorization": "Bearer your-token"
  }
}

Test Connection

After configuration, use the "Test Connection" feature to verify configuration is correct:

  • Successful connection displays available tools and resources list
  • Failed connection displays error messages, please check configuration parameters

Using MCP Tools

After enabling and configuring MCP servers, in the AI chat on the record page:

  1. Click the MCP tools button
  2. Select available tools
  3. AI will automatically call selected tools to enhance conversation capabilities

Common MCP Servers

Here are some commonly used MCP server examples:

File System Access

  • mcp-server-filesystem: Access local file system
  • GitHub: Read and manipulate GitHub repositories

Database Connections

  • PostgreSQL: Connect to PostgreSQL databases
  • SQLite: Access SQLite database files

Web Services

  • Fetch: Send HTTP requests
  • Puppeteer: Web automation operations

Notes

  1. Security: Only configure trusted MCP servers to avoid leaking sensitive information
  2. Performance: MCP tool calls increase response time; enable selectively as needed
  3. Compatibility: Ensure MCP server version is compatible with NoteGen
  4. Network Requirements: HTTP-type servers require stable network connection