</>MCP Agents Market
MCP Server

gpt4free

by xtekky66.6kPythonUpdated 2026-08-13

The official gpt4free repository | various collection of powerful language models | opus 4.6 gpt 5.3 kimi 2.5 deepseek v3.2 gemini 3

Claude Desktop

The gpt4free MCP server provides AI assistants with web search, content scraping, and image generation capabilities through the Model Context Protocol. Created by xtekky and maintained by hlohaus, it aggregates multiple language model providers and media generation services into a unified interface. The MCP server exposes three core tools—web_search (DuckDuckGo), web_scrape (content extraction), and image_generation—that can be integrated into Claude Desktop and other MCP-compatible clients. It operates in both stdio and HTTP modes for flexible deployment.

Key Features

MCP server with stdio and HTTP transport modes for flexible integration
Web search tool powered by DuckDuckGo for real-time information retrieval
Web scraping tool to extract text content from arbitrary URLs
Image generation tool supporting multiple models including Flux
Direct integration with Claude Desktop via JSON configuration
HTTP mode provides JSON-RPC endpoint and health check at configurable ports
Multi-provider aggregation for language models and media generation
OpenAI-compatible API alongside native Python and JavaScript clients

Use Cases

  • 01Enabling Claude Desktop to search the web and retrieve current information during conversations
  • 02Extracting and analyzing content from documentation pages or articles within AI workflows
  • 03Generating custom images from text descriptions during assistant interactions
  • 04Building AI agents that combine web research with language model reasoning
  • 05Augmenting code assistants with real-time web data and visual content creation
  • 06Creating multi-modal AI applications that blend search, scraping, and generation capabilities

Related MCP Servers

View more

gpt4free — FAQ

What is the gpt4free MCP server?+

The gpt4free MCP server is a Model Context Protocol implementation that gives AI assistants like Claude access to web search, content scraping, and image generation capabilities. It exposes these functions as MCP tools that can be invoked during conversations.

How do I install the gpt4free MCP server in Claude Desktop?+

Install g4f via pip (pip install -U g4f[all]), then add a configuration entry to your claude_desktop_config.json file with the command 'python' and args ['-m', 'g4f.mcp']. Restart Claude Desktop to activate the server.

Which AI clients support the gpt4free MCP server?+

The MCP server works with Claude Desktop and any other client that supports the Model Context Protocol. It can run in stdio mode for direct integration or HTTP mode for network-based connections.

Do I need API keys to use the gpt4free MCP server?+

The core MCP tools (web_search, web_scrape, image_generation) work without API keys for basic functionality. Some underlying provider integrations may require API keys, cookies, or browser automation for advanced features.

Is the gpt4free MCP server free to use?+

Yes, gpt4free is open source and licensed under GPLv3, making it free to use, modify, and redistribute. The project aggregates free and accessible AI provider endpoints.

What are the system requirements for running the MCP server?+

You need Python 3.10 or higher. Some features may require Chrome/Chromium for browser automation. The server can also run via Docker with both full and slim images available for x86_64 and arm64 architectures.

How do I install gpt4free?+

Open the source repository on GitHub and follow its README. gpt4free is a mcp server — MCP Agents Market links you directly to the official repo.

Is gpt4free free?+

gpt4free is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches