Sponsored by Deepsite.site

Claude Connect

Created By
grapheneaffiliate9 months ago
An MCP-compliant external connector server enabling Claude and other LLMs to interact with web APIs, filesystem, and custom resources
Content

Claude Connect

An MCP-compliant external connector server enabling Claude and other LLMs to interact with web APIs, filesystem, and custom resources. v1.1 (March 2025)

Overview

Claude Connect is a server that implements Anthropic's Model Context Protocol (MCP), allowing Large Language Models like Claude to interact with external tools and resources in a standardized way. This server enables LLMs to access web search results, read and write files in a sandboxed environment, and utilize custom resources.

Key Features

  • Web Search Integration: Connect to Bing Search API (required) and Google Search API (optional)
  • File Operations: Read, write, list, and delete files within a secure sandbox
  • Custom Resources: Define and access custom resource types
  • Prompt Templates: Store and retrieve custom prompt templates
  • Multiple Transport Options: Primary STDIO transport for Claude Desktop integration, optional HTTP transport with JWT authentication
  • Extensible Architecture: Easy to add new capabilities and resources
  • Cross-Platform: Tested on Windows 10, but designed to work on any platform supporting Python 3.10+

Quick Start

This MCP server enables Large Language Models like Claude to access external tools and resources. It takes about 15 minutes to set up and requires Python 3.10+ and API keys for search functionality. Follow these steps to get started:

  1. Install Python 3.10+, create a virtual environment, and activate it (e.g., using python -m venv venv and ..\venv\Scripts\activate on Windows).
  2. Install dependencies: ..\venv\Scripts\pip.exe install -r requirements.txt (using full path helps bypass potential PowerShell execution policy issues).
  3. Rename .env.example to .env and add your API keys (Bing Search API required, Google Search API optional).
  4. Run server in STDIO mode: ..\venv\Scripts\python.exe main.py or HTTP mode: ..\venv\Scripts\python.exe main.py --http.
  5. Test with ..\venv\Scripts\pytest.exe.

Note: Some commands, especially activation or installation, might require running PowerShell/CMD as Administrator on Windows depending on your system configuration.

For detailed setup instructions, see the Setup Guide. For Claude Desktop integration, see the Claude Desktop Integration Guide.

Documentation

Advanced Usage

For advanced usage scenarios, including:

  • Manual JSON-RPC interaction
  • Extending the server with new capabilities
  • Using PostgreSQL instead of SQLite
  • Enabling Redis caching
  • Internationalization
  • Performance tuning

See the Advanced Usage Guide.

Code Explanation & Design Rationale

The Claude Connect server is designed with the following principles in mind:

  • Modularity: Each capability is implemented as a separate handler function.
  • Security: File operations are restricted to a sandbox directory, and path traversal attempts are prevented.
  • Extensibility: New capabilities can be added by implementing new handler functions and updating the capabilities list.
  • Configurability: Most aspects of the server can be configured through environment variables and configuration files.

The server supports two transport modes:

  • STDIO: For integration with Claude Desktop and other MCP clients that support STDIO transport.
  • HTTP: For development, testing, and integration with web applications.

For more details on the code structure and design decisions, see the API Reference.

Containerization & Deployment

You can containerize Claude Connect using Docker:

# Dockerfile
FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .
RUN mkdir -p sandbox

EXPOSE 8000

CMD ["python", "main.py", "--http"]

Build and run the Docker container:

docker build -t claude-connect .
docker run -p 8000:8000 --env-file=.env claude-connect

For more deployment options, including Windows services and systemd, see the Advanced Usage Guide.

Future Enhancements

Planned enhancements for future versions include:

  • WebSocket Transport: For real-time communication with web applications.
  • More Search Providers: Integration with additional search APIs.
  • Enhanced Authentication: More authentication options for HTTP mode.
  • Admin Dashboard: A web interface for managing the server.
  • Plugin System: A plugin system for extending the server with custom capabilities.

Troubleshooting

If you encounter issues, check the Troubleshooting Guide for common problems and solutions.

For more detailed logging, set the log level to DEBUG in main.py:

logging.basicConfig(
    level=logging.DEBUG,  # Change from INFO to DEBUG
    format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)

Contributing

Contributions are welcome! Please check out our Contributing Guidelines and Code of Conduct.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Community

  • GitHub Issues: For bug reports and feature requests
  • Discord Server: For discussions and community support (Coming Soon)
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Amap Maps高德地图官方 MCP Server
Tavily Mcp
WindsurfThe new purpose-built IDE to harness magic
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
ChatWiseThe second fastest AI chatbot™
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Playwright McpPlaywright MCP server
Serper MCP ServerA Serper MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.