# Avoid setting UV_ENV_FILE globally I'm using the [Atlassian Remote MCP Server](https://community.atlassian.com/forums/Atlassian-Platform-articles/Using-the-Atlassian-Remote-MCP-Server-beta/ba-p/3005104) in Claude Code to fetch Jira tickets. I installed it per-project using `claude mcp add-json `. Recently, I noticed it keeps failing in one project, although the config is exactly the same. I checked the problem by locating the MCP server command and executing it within the project. The error raised: `` No environment file found at: `.env` ``. It reminded me that `UV_ENV_FILE=.env` is set globally, and it's too convenient to be noticed. After removing the environment variable, the MCP server works. If only one command needs a dotenv file, pass it to that command instead of exporting `UV_ENV_FILE` in your shell profile: ```shell uv run --env-file .env python app.py ``` See [uv’s dotenv documentation](https://docs.astral.sh/uv/concepts/configuration-files/#environment-variable-files).