***

title: find_config_file
slug: /reference/python/agents/configuration/config-loader/find-config-file
description: Static method to locate a config file without loading it.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-configloader]: /docs/server-sdks/reference/python/agents/configuration/config-loader

### find\_config\_file (static)

**[ConfigLoader][ref-configloader].find\_config\_file**(`service_name=None`, `additional_paths=None`) -> `Optional[str]`

Static method to locate a config file without loading it.

## **Parameters**

<ParamField path="service_name" type="str" toc={true}>
  Optional service name. When provided, the method also checks for
  `{service_name}_config.json` and `.swml/{service_name}_config.json`.
</ParamField>

<ParamField path="additional_paths" type="list[str]" toc={true}>
  Additional file paths to check before the default search paths.
</ParamField>

## **Returns**

`Optional[str]` -- Path to the first config file found, or `None`.

## **Example**

```python {4,9}
from signalwire.core.config_loader import ConfigLoader

# Find config for the MCP service
path = ConfigLoader.find_config_file(service_name="mcp")
# Checks: mcp_config.json, .swml/mcp_config.json, config.json, ...
print(f"Found: {path}")

# Find with extra paths
path = ConfigLoader.find_config_file(
    additional_paths=["/opt/myapp/config.json"]
)
print(f"Found: {path}")
```