Overview
The g4f-mcp-server is a server designed to provide access to GPT-4 capabilities for free, enabling users to utilize advanced AI functionalities without cost.
To use the g4f-mcp-server, you need to set it up on your local machine or server by following the installation instructions provided in the GitHub repository. Once set up, you can make API calls to interact with the GPT-4 model.
- Free access to GPT-4 AI capabilities - Easy setup and integration with existing applications - Supports various API calls for different functionalities
- Building chatbots that leverage GPT-4 for natural language understanding.
- Developing applications that require advanced text generation capabilities.
- Integrating AI functionalities into existing software solutions.
Add to your AI client
Use these steps to connect g4f-mcp-server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"g4f-mcp-server-npnpatidar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-g4f-mcp-server-npnpatidar"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"g4f-mcp-server-npnpatidar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-g4f-mcp-server-npnpatidar"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"g4f-mcp-server-npnpatidar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-g4f-mcp-server-npnpatidar"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"g4f-mcp-server-npnpatidar": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-g4f-mcp-server-npnpatidar"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"g4f-mcp-server-npnpatidar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-g4f-mcp-server-npnpatidar"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"g4f-mcp-server-npnpatidar": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-g4f-mcp-server-npnpatidar"
]
}
}
}FAQ
Is g4f-mcp-server free to use?
Yes! g4f-mcp-server provides free access to GPT-4 functionalities.
What programming languages can I use with g4f-mcp-server?
You can use any programming language that can make HTTP requests to interact with the server.
Is there any support available for g4f-mcp-server?
Support is primarily provided through the GitHub repository's issues section.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3774,"uuid":"2dc13ec1-70a8-4d1a-ad73-a4d7a9a10cf7","name":"g4f-mcp-server","title":"g4f-mcp-server","description":"gpt4free mcp server","avatar_url":"https://avatars.githubusercontent.com/u/5734298?v=4","created_at":"2025-03-21T16:35:17.064+00:00","updated_at":"2025-03-21T16:40:47.067+00:00","status":"created","author_name":"npnpatidar","author_avatar_url":"https://avatars.githubusercontent.com/u/5734298?v=4","tags":"gpt4free,mcp-server,ai-server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/npnpatidar/g4f-mcp-server","target":"_self","content":"# g4f-mcp-server\ngpt4free mcp server","summary":"$29","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"Apache-2.0 license\",\"language\":null,\"is_official\":false,\"latest_commit_time\":\"2025-03-21 16:28:14\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]