{"id":27948022,"url":"https://github.com/toby/azure-code-interpreter-mcp","last_synced_at":"2025-06-17T09:34:47.711Z","repository":{"id":291693037,"uuid":"935728314","full_name":"toby/azure-code-interpreter-mcp","owner":"toby","description":"Azure Code Interpreter MCP, run Python in the cloud","archived":false,"fork":false,"pushed_at":"2025-03-07T00:54:32.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-15T12:56:03.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-19T23:21:56.000Z","updated_at":"2025-05-05T21:22:34.000Z","dependencies_parsed_at":"2025-05-06T03:54:16.775Z","dependency_job_id":null,"html_url":"https://github.com/toby/azure-code-interpreter-mcp","commit_stats":null,"previous_names":["toby/azure-code-interpreter-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toby/azure-code-interpreter-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toby%2Fazure-code-interpreter-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toby%2Fazure-code-interpreter-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toby%2Fazure-code-interpreter-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toby%2Fazure-code-interpreter-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toby","download_url":"https://codeload.github.com/toby/azure-code-interpreter-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toby%2Fazure-code-interpreter-mcp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260329083,"owners_count":22992828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T14:54:45.300Z","updated_at":"2025-06-17T09:34:47.686Z","avatar_url":"https://github.com/toby.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Code Interpreter MCP Server\n\nThis [MCP](https://modelcontextprotocol.io/introduction) server gives LLMs the ability to run Python code in a secure and sandboxed environment. The server is built on top of the [Azure Code Interpreter](https://learn.microsoft.com/en-us/azure/container-apps/sessions-code-interpreter) and gives the LLM the ability to execute code and download generated files in sessions that are ephemeral and isolated from the rest of the system.\n\n## Setup\n\nThe server uses the [az](https://github.com/Azure/azure-cli) Azure CLI client for authentication, so make sure that is installed and authenticated. You'll need to setup a resource group and session pool according to [these instructions](https://learn.microsoft.com/en-us/azure/container-apps/sessions-code-interpreter#code-interpreter-session-pool). Be sure to set the `--network-status EgressEnabled` flag when creating the session pool if you want generated code to access the internet.\n\nYou need to build the `azure-code-interpreter-mcp` binary with `go` and install it in your `$PATH` or reference it directly in your LLM tool.\n\n## Usage\n\nOnce you have created the requred Azure resources and authenticated with `az`, you need to set the following environment variables in your LLM tool:\n\n- `AZURE_SUBSCRIPTION_ID`: The ID of the Azure subscription that contains the resource group.\n- `AZURE_RESOURCE_GROUP`: The name of the resource group that contains the session pool.\n- `AZURE_SESSION_POOL`: The name of the session pool that the server should use.\n- `AZURE_REGION`: The region that the session pool is in.\n- `AZURE_DOWNLOAD_DIRECTORY`: The directory where the server should save downloaded files. This directory must be writable by the server process.\n\n## Supported Server Functions\n\nThe LLM has access to the following functionality.\n\n### New Session\n\nThe LLM can create a new session as it sees fit for deliniating tasks.\n\n### Execute\n\nExecute Python code in the context of the session. The LLM is prompted to save any created files to the `/mnt/data` directory, which Azure has setup to allow files to be downloaded.\n\n### List Files\n\nThis will list the files that have been stored in the `/mnt/data` directory by the executed code.\n\n### Download Files\n\nDownload the files from `/mnt/data` to the directory specified by `AZURE_DOWNLOAD_DIRECTORY` on the server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoby%2Fazure-code-interpreter-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoby%2Fazure-code-interpreter-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoby%2Fazure-code-interpreter-mcp/lists"}