Skip to content

MCP Servers

MCP (Model Context Protocol) is a protocol that allows AI to connect to external tools and data sources. Through MCP, you can give Carry Code access to more features.


MCP (Model Context Protocol) is a standardized AI tool extension protocol. It allows:

  • 🔍 Search - Access search engines for real-time information
  • 🗄️ Databases - Connect to databases to query data
  • 📁 File System - More flexible file access
  • 🌐 API Calls - Call various external services
  • 🛠️ Custom Tools - Add your own tools

Type /mcp and press Space

Select add

MCP servers support three connection methods:

For remote services:

Server Name: my-mcp-server
Server URL: https://mcp.example.com/sse
Description: This is a sample MCP server

For local programs:

Server Name: local-tool
Command: node
Arguments: /path/to/mcp-server/index.js

For HTTP streaming:

Server Name: http-mcp
URL: https://mcp.example.com/mcp

/mcp

Displays all configured MCP servers and their status.

/mcp edit <server-name>
/mcp delete <server-name>
/mcp test <server-name>

ServerFunctionInstall Command
@modelcontextprotocol/server-filesystemFile system accessnpm install -g @modelcontextprotocol/server-filesystem

Example:

Server Name: filesystem
Command: npx
Arguments: @modelcontextprotocol/server-filesystem /your/project/path
ServerFunctionRequirement
@modelcontextprotocol/server-brave-searchReal-time web searchBrave API Key required
ServerFunctionRequirement
@modelcontextprotocol/server-postgresPostgreSQLDatabase connection info required
@modelcontextprotocol/server-sqliteSQLiteLocal SQLite file path
ServerFunctionRequirement
@modelcontextprotocol/server-githubGitHub APIGitHub Token required

{
"mcpServers": {
"filesystem": {
"type": "stdio",
"command": "npx",
"args": ["@modelcontextprotocol/server-filesystem", "/path/to/your/project"]
}
}
}
{
"mcpServers": {
"remote-search": {
"type": "sse",
"url": "https://mcp.example.com/sse"
}
}
}

After adding an MCP server, AI can automatically use these tools:

  1. Search tools - Let AI search for real-time information
  2. Database tools - Query data
  3. File tools - Access specified directories

Q: Does the MCP server need to run continuously?

Section titled “Q: Does the MCP server need to run continuously?”

Yes, it needs to keep running to be used. Remote servers need to stay online, local programs need to keep the process running.

Q: Will AI automatically use MCP tools after adding?

Section titled “Q: Will AI automatically use MCP tools after adding?”

Yes. AI will automatically discover and use available MCP tools.

MCP tools require your authorization to use. Recommendations:

  • Only add trusted MCP servers
  • Protect your API keys
  • Regularly check added servers

Q: What’s the difference between MCP and built-in tools?

Section titled “Q: What’s the difference between MCP and built-in tools?”
FeatureBuilt-in ToolsMCP Tools
QuantityLimitedExtensible
FunctionBasicCustom
AdditionReady to useRequires configuration