This guide explains how to configure the PyAirbyte MCP Server for local use only.
The MCP configuration file is typically located at:
- Cline/Claude Dev Extension:
/Users/quintonwall/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json - Claude Desktop App:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"pyairbyte-mcp-server": {
"command": "python",
"args": ["/Users/quintonwall/code/airbyte-mcp/main.py"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key-here"
},
"disabled": false
}
}
}OPENAI_API_KEY: Your OpenAI API key for accessing GPT models and file search functionality
VECTOR_STORE_ID: OpenAI Vector Store ID for file search capabilities (if you have uploaded PyAirbyte documentation)PORT: Port number for the server (defaults to 8000)
- Go to OpenAI Platform
- Sign in to your account or create a new one
- Navigate to the API Keys section
- Create a new API key
- Copy the key and add it to your MCP configuration
Here's an example of a complete MCP settings file with the PyAirbyte server configured:
{
"mcpServers": {
"pyairbyte-mcp-server": {
"command": "python",
"args": ["/Users/quintonwall/code/airbyte-mcp/main.py"],
"env": {
"OPENAI_API_KEY": "sk-proj-abc123..."
},
"disabled": false
},
"other-server": {
"command": "node",
"args": ["/path/to/other/server.js"],
"disabled": false
}
}
}After updating your MCP configuration:
- Restart your Cline/Claude application
- The server should automatically connect and initialize with your OpenAI API key
- Check the server logs for confirmation that the OpenAI client was initialized successfully
- You should see the
generate_pyairbyte_pipelinetool available in your MCP tools
- Never commit your API keys to version control
- Keep your OpenAI API key secure and rotate it regularly
- Monitor your OpenAI usage to avoid unexpected charges
- The API key is only used for generating PyAirbyte pipeline code and documentation search
If the server fails to start:
- Check the file path: Ensure the path in
argspoints to the correct location ofmain.py - Verify Python installation: Make sure Python is available in your PATH
- Check dependencies: Ensure required packages are installed (
pip install openai python-dotenv fastmcp) - Validate API key: Test your OpenAI API key with a simple API call
- Check logs: Look for error messages in the MCP server logs
If you were previously using a .env file for configuration, you can now remove the OPENAI_API_KEY from the .env file and configure it through the MCP settings instead. The server will still fall back to environment variables if the MCP configuration doesn't provide the API key.