Claude Connect

Claude Connect

An MCP-compliant external connector server enabling Claude and other LLMs to interact with web APIs, filesystem, and custom resources

grapheneaffiliate

开发者工具
访问服务器

README

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)

推荐服务器

Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
MCP Package Docs Server

MCP Package Docs Server

促进大型语言模型高效访问和获取 Go、Python 和 NPM 包的结构化文档,通过多语言支持和性能优化来增强软件开发。

精选
本地
TypeScript
Claude Code MCP

Claude Code MCP

一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。

精选
本地
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

用于任务管理的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。

精选
本地
JavaScript
mermaid-mcp-server

mermaid-mcp-server

一个模型上下文协议 (MCP) 服务器,用于将 Mermaid 图表转换为 PNG 图像。

精选
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP 服务器向 AI 编码助手(如 Cursor)提供 Jira 工单信息。

精选
TypeScript
Linear MCP Server

Linear MCP Server

一个模型上下文协议(Model Context Protocol)服务器,它与 Linear 的问题跟踪系统集成,允许大型语言模型(LLM)通过自然语言交互来创建、更新、搜索和评论 Linear 问题。

精选
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。

精选
Python
Curri MCP Server

Curri MCP Server

通过管理文本笔记、提供笔记创建工具以及使用结构化提示生成摘要,从而实现与 Curri API 的交互。

官方
本地
JavaScript