MCP Servers (Model Context Protocol)¶
MCP allows AI models to interact with external tools and services.
What is MCP?¶
The Model Context Protocol (MCP) is a standard for connecting AI models to external capabilities: - Tools: Functions the AI can call (e.g., web search, database queries) - Resources: Data the AI can access (e.g., file contents, API data)
MCP Server Catalog¶
Null Terminal includes a curated catalog of 100+ MCP servers across 18 categories. Browse and install servers with a single command:
This opens an interactive browser where you can: - Browse servers by category (File System, Database, Development, Cloud, etc.) - Search for servers by name or description - See which servers are already installed (marked with [Installed]) - Install servers with pre-filled configuration
Available Categories¶
| Category | Description |
|---|---|
| File System | File and directory operations |
| Database | SQL, NoSQL, and vector databases |
| Development | GitHub, GitLab, CI/CD tools |
| Sysadmin | Docker, Kubernetes, SSH |
| Monitoring | Prometheus, Grafana, Datadog |
| Cloud | AWS, GCP, Azure, Cloudflare |
| Web | Browser automation, web scraping |
| Search | Brave, Exa, Tavily, Google |
| Communication | Slack, Discord, Email |
| Productivity | Notion, Obsidian, Todoist |
| Memory | Knowledge graphs, vector stores |
| Finance | Stripe, Plaid, stock data |
| Social | Twitter, Reddit, YouTube |
| Utility | Time, weather, calculations |
| AI | OpenAI, Anthropic, HuggingFace |
| E-commerce | Shopify, WooCommerce |
| Analytics | Google Analytics, Mixpanel |
| CRM | Salesforce, HubSpot, Zendesk |
Configuration¶
MCP servers are configured in ~/.null/mcp.json:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-filesystem", "/home/user"],
"env": {},
"enabled": true
},
"brave-search": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-brave-search"],
"env": {
"BRAVE_API_KEY": "your-api-key"
},
"enabled": true
}
}
}
Managing MCP Servers¶
List Servers¶
Browse Catalog¶
Add Server¶
Edit Server¶
Enable/Disable¶
Remove Server¶
Reconnect¶
View Tools¶
Popular MCP Servers¶
Filesystem Access¶
{
"filesystem": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-filesystem", "/path/to/allow"],
"enabled": true
}
}
Brave Search¶
{
"brave-search": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-brave-search"],
"env": {
"BRAVE_API_KEY": "your-key"
},
"enabled": true
}
}
GitHub¶
{
"github": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-github"],
"env": {
"GITHUB_TOKEN": "your-token"
},
"enabled": true
}
}
Postgres Database¶
{
"postgres": {
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-postgres", "postgresql://..."],
"enabled": true
}
}
Custom Python Server¶
{
"my-server": {
"command": "python",
"args": ["/path/to/my_mcp_server.py"],
"env": {
"MY_CONFIG": "value"
},
"enabled": true
}
}
Using MCP Tools¶
In Chat Mode¶
When you ask the AI to perform a task, it can use MCP tools:
You: Search for recent news about AI
AI: [Uses brave_search tool]
Here are the recent news articles...
In Agent Mode¶
Enable agent mode for autonomous tool use:
The AI will automatically chain tool calls to complete tasks.
Tool Approval¶
By default, tool execution requires approval. The AI will request permission before executing sensitive operations.
Status Bar¶
The status bar shows MCP connection status: - Number of connected servers - Green indicator when connected
Troubleshooting¶
Server Won't Connect¶
- Check the command exists:
which npxorwhich python - Verify the server package:
npx -y @anthropic/mcp-server-<name> - Check environment variables are set
- View logs in terminal output
Tools Not Appearing¶
- Ensure server is enabled:
/mcp list - Reconnect:
/mcp reconnect <name> - Check
/mcp toolsfor available tools
Permission Errors¶
- Filesystem server needs read access to specified paths
- Database servers need valid connection strings
- API servers need valid API keys in environment
Finding MCP Servers¶
- Built-in Catalog: Use
/mcp catalogto browse 100+ curated servers - Official MCP servers: https://github.com/modelcontextprotocol/servers
- Community servers: Search GitHub for "mcp-server"
- Build your own: See MCP SDK documentation
Environment Variables¶
Many MCP servers require API keys or credentials. Set them in the server configuration:
{
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "ghp_xxxxxxxxxxxx"
}
}
}
Common environment variables by server type:
| Server | Required Variables |
|---|---|
| GitHub | GITHUB_TOKEN |
| Slack | SLACK_BOT_TOKEN, SLACK_TEAM_ID |
| Brave Search | BRAVE_API_KEY |
| PostgreSQL | POSTGRES_CONNECTION_STRING |
| AWS | AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY |
| Google APIs | GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET |
The catalog shows required environment variables for each server before installation.