Configure your OmniMind environment
This guide covers all the configuration options available in OmniMind.
Make sure to have the api key relative to the provider of your choice available in the environment. You can either:
1 - Create .env
file with your keys as:
and load it in Python using
This will make all the keys defined in .env
available in your Python runtime, granted that you run from where the .env is located.
2 - Set it in your environment by running in your terminal the following command, e.g., for OpenAI:
and then import it in your Python code as:
or any other method you might prefer.
OmniMind supports any MCP server through a flexible configuration system. (For a list of awesome servers, you can visit https://github.com/punkpeye/awesome-mcp-servers or https://github.com/appcypher/awesome-mcp-servers, which have an amazing collection of them)
The configuration is defined in a JSON file with the following structure:
MCP servers can use different connection types (STDIO, HTTP). For details on these connection types and how to configure them, see the Connection Types guide.
server_name
: A unique identifier for your MCP servercommand
: The command to start the MCP serverargs
: Array of arguments to pass to the commandenv
: Environment variables to set for the serverHere’s a basic example of how to configure an MCP server:
You can configure multiple MCP servers in a single configuration file, allowing you to use different servers for different tasks or combine their capabilities (e.g.):
For a complete example of using multiple servers, see the multi-server example in our repository.
When creating an MCPAgent, you can configure several parameters:
config_path
: Path to the server configuration file.api_key
: Authentication key for accessing services.server_name
: Specifies the target server for tasks.OmniMind provides several ways to handle errors:
max_steps
parameter if operations are timing outConfigure your OmniMind environment
This guide covers all the configuration options available in OmniMind.
Make sure to have the api key relative to the provider of your choice available in the environment. You can either:
1 - Create .env
file with your keys as:
and load it in Python using
This will make all the keys defined in .env
available in your Python runtime, granted that you run from where the .env is located.
2 - Set it in your environment by running in your terminal the following command, e.g., for OpenAI:
and then import it in your Python code as:
or any other method you might prefer.
OmniMind supports any MCP server through a flexible configuration system. (For a list of awesome servers, you can visit https://github.com/punkpeye/awesome-mcp-servers or https://github.com/appcypher/awesome-mcp-servers, which have an amazing collection of them)
The configuration is defined in a JSON file with the following structure:
MCP servers can use different connection types (STDIO, HTTP). For details on these connection types and how to configure them, see the Connection Types guide.
server_name
: A unique identifier for your MCP servercommand
: The command to start the MCP serverargs
: Array of arguments to pass to the commandenv
: Environment variables to set for the serverHere’s a basic example of how to configure an MCP server:
You can configure multiple MCP servers in a single configuration file, allowing you to use different servers for different tasks or combine their capabilities (e.g.):
For a complete example of using multiple servers, see the multi-server example in our repository.
When creating an MCPAgent, you can configure several parameters:
config_path
: Path to the server configuration file.api_key
: Authentication key for accessing services.server_name
: Specifies the target server for tasks.OmniMind provides several ways to handle errors:
max_steps
parameter if operations are timing out