drio
Open app

Code2Flow MCP 服务器

Source

Code2Flow MCP服务器,用于生成代码调用图并通过MCP协议提供服务

Catalog onlyCatalog onlySTDIO

Overview

Code2Flow MCP Server is a project that wraps the code2flow command-line tool into an MCP (Model Context Protocol) server, allowing AI applications to generate and access code call graphs through a standardized MCP protocol.

To use the Code2Flow MCP Server, clone the repository, set up a virtual environment, install dependencies, and run the server using Python. You can also use MCP tools to interact with the server.

  • Analyzes source code and generates call graphs - Supports multiple programming languages (Python, JavaScript, Ruby, PHP) - Provides services via MCP protocol for easy integration with AI applications - Outputs images in PNG format - Includes version checking and code complexity analysis features
  1. Generating call graphs for codebases in various programming languages.
  2. Analyzing code complexity to improve code quality.
  3. Integrating with AI applications for enhanced code understanding.

Add to your AI client

Use these steps to connect Code2Flow MCP 服务器 in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "code2flow-mcp-server-kursk-ye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code2flow-mcp-server-kursk-ye"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "code2flow-mcp-server-kursk-ye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code2flow-mcp-server-kursk-ye"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "code2flow-mcp-server-kursk-ye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code2flow-mcp-server-kursk-ye"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "code2flow-mcp-server-kursk-ye": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code2flow-mcp-server-kursk-ye"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "code2flow-mcp-server-kursk-ye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code2flow-mcp-server-kursk-ye"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "code2flow-mcp-server-kursk-ye": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code2flow-mcp-server-kursk-ye"
      ]
    }
  }
}

FAQ

What programming languages does Code2Flow MCP Server support?

It supports Python, JavaScript, Ruby, and PHP.

How do I install Code2Flow MCP Server?

Clone the repository, create a virtual environment, install dependencies, and run the server.

Can I use it with AI applications?

Yes! It is designed for easy integration with AI applications through the MCP protocol.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3378,"uuid":"5795350d-180c-45cb-8408-ede693ac67c0","name":"code2flow-mcp-server","title":"Code2Flow MCP 服务器","description":"Code2Flow MCP服务器,用于生成代码调用图并通过MCP协议提供服务","avatar_url":"https://avatars.githubusercontent.com/u/4711297?v=4","created_at":"2025-03-19T06:38:51.984Z","updated_at":"2025-03-19T06:46:52.021Z","status":"created","author_name":"kursk-ye","author_avatar_url":"https://avatars.githubusercontent.com/u/4711297?v=4","tags":"code2flow,mcp-server,code-analysis","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/kursk-ye/code2flow-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-19 14:00:17\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]