Loading...
pip install "mcp-cli[cli]" # Basic CLI features{
"mcpServers": {
"sqlite": {
"command": "python",
"args": ["-m", "mcp_server.sqlite_server"],
"env": {
"DATABASE_PATH": "database.db"
}
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"],
"env": {}
},
"brave-search": {
"command": "npx",
"args": ["-y", "@brave/brave-search-mcp-server"],
"env": {
"BRAVE_API_KEY": "${TOKEN:bearer:brave_search}"
}
},
"notion": {
"url": "https://mcp.notion.com/mcp",
"headers": {
"Authorization": "Bearer ${TOKEN:bearer:notion}"
}
}
}
}execute_shell_commandExecutes a shell command on the underlying system.
Unrestricted shell access can lead to arbitrary code execution.
read_fileReads the content of a file from the filesystem.
Can expose sensitive information if not properly controlled.
write_fileWrites content to a file on the filesystem.
Can modify system files or user data.
search_webSearches the web for information.
Read-only operation with no direct side effects.
get_current_timeRetrieves the current date and time.
Read-only operation with no side effects.
The MCP CLI offers a balance of functionality and security. It is relatively safe when used with local LLMs and filesystem access disabled. However, using cloud providers and enabling tool execution introduces risks that require careful configuration and monitoring.