
What is MCP?
The Model Context Protocol provides a common interface for AI models to connect with external tools without requiring custom integration work. It solves the “M × N” problem where every model (M) would otherwise need a unique connector for every tool (N).How It Works
Clients (like Jan) connect to MCP Servers which provide:- Prompts: Pre-configured prompt templates
- Tools: Functions the AI can call
- Resources: Data sources the AI can access
Core Benefits
Standardization
One protocol connects any compliant model to any compliant tool
Extensibility
Grant AI models access to search, databases, APIs, and custom tools
Flexibility
Swap models or tools with minimal friction for modular workflows
Prerequisites
Before setting up MCP servers, ensure you have:- Node.js - Download from nodejs.org
- Python (optional, for Python-based servers) - Download from python.org
- A tool-calling capable model - Not all models support tool calling effectively
Enable MCP in Jan
Enable Experimental Features
Navigate to Settings > General > Advanced and enable experimental features
Setting Up an MCP Server
Let’s walk through setting up the Browser MCP as an example.Browser MCP Configuration
Configure Server Details
Enter the following configuration:
- Server Name:
browsermcp - Command:
npx - Arguments:
@browsermcp/mcp - Environment Variables: Leave empty
Install Browser Extension
- Open a Chrome-based browser (Chrome, Brave, Edge, Vivaldi)
- Install the Browser MCP Extension
- Enable the extension to run in private/incognito windows
- Connect the extension to your MCP server
MCP Server Examples
Here are some popular MCP servers you can integrate:File System Access
GitHub Integration
Database Access
Slack Integration
MCP API Reference
Jan implements the MCP interface for tool management:Get Available Tools
Call a Tool
Manage Servers
Security Considerations
Permission Management
- Review each MCP server’s capabilities before enabling
- Enable permissions individually for each tool
- Regularly audit active MCP servers
- Disable unused servers to minimize attack surface
Data Privacy
- Be cautious with servers that access sensitive data
- Review the source code of third-party MCP servers
- Use local-only servers when possible
- Avoid passing credentials or secrets through prompts
Prompt Injection Risks
MCP tools can be vulnerable to prompt injection attacks where malicious input tricks the model into misusing tools. Mitigation strategies:- Use models with strong instruction-following capabilities
- Implement rate limiting for tool calls
- Add confirmation steps for destructive actions
- Monitor tool usage logs
Performance Considerations
Context Window Usage
Active MCP connections consume a portion of the model’s context window:- Each tool’s schema is included in the prompt
- More tools = less space for conversation
- Balance tool availability with context needs
Resource Management
- Limit the number of simultaneous MCP servers
- Close connections to unused servers
- Monitor system resource usage
- Use streaming for long-running tool operations
Troubleshooting
Server Won’t Connect
Check Prerequisites
Check Prerequisites
- Verify Node.js is installed:
node --version - Verify Python is installed (if needed):
python --version - Ensure all dependencies are installed
Verify Configuration
Verify Configuration
- Double-check the command and arguments
- Ensure environment variables are set correctly
- Check for typos in the server name
Review Logs
Review Logs
- Enable verbose logging in Jan’s settings
- Check the MCP server logs for errors
- Restart Jan and try reconnecting
Model Won’t Use Tools
- Verify tool calling is enabled in model settings
- Check model compatibility - many open-source models don’t support tool calling well
- Test with a known-good model like Claude 4 Sonnet or GPT-4
- Review the prompt - be explicit about when to use tools
Tool Execution Fails
- Verify the tool has necessary permissions
- Check that environment variables are set correctly
- Review tool arguments for correct format
- Ensure external services (APIs, databases) are accessible
Best Practices
Model Selection
Choose models with strong tool-calling capabilities: Recommended for MCP:- Claude 4 Opus / Sonnet (excellent tool calling)
- GPT-4 / GPT-4 Turbo (reliable tool use)
- Gemini 2.0 Pro (good multimodal + tools)
- Smaller open-source models (variable tool calling quality)
- Models without explicit tool-calling training
- Models that don’t support vision (for screenshot-based tools)
Workflow Design
- Start simple - Begin with one or two tools
- Test thoroughly - Verify each tool works independently
- Iterate gradually - Add more tools as needed
- Document usage - Keep notes on what works well
Maintenance
- Regularly update MCP servers to latest versions
- Remove unused server configurations
- Review and rotate API keys/tokens
- Monitor tool usage for anomalies
Future Potential
MCP integration enables sophisticated workflows:- Cross-reference information between local documents and remote APIs
- Automate complex tasks by chaining multiple tools
- Build custom assistants with domain-specific tool access
- Create reproducible workflows with tool templates
Resources
Need Help?
Join our Discord community for support with MCP server configuration and troubleshooting.