Skip to main content
Glama

JavaScript MCP Server

by yannbam

JavaScript MCP 服务器

模型上下文协议 (MCP) 的 JavaScript 执行服务器,允许 AI 模型通过 MCP 工具调用运行 JavaScript 代码。

特征

  • JavaScript 执行:以一次性脚本执行模式运行 JavaScript 代码
  • REPL 会话:在多个交互中维护有状态的 REPL 会话
  • TypeScript 支持:通过自动转译运行 TypeScript 代码
  • NPM 集成:动态导入和使用 npm 包
  • 模块导入:从 Node.js 和本地文件导入模块
  • 错误处理:使用格式化的堆栈跟踪进行全面的错误处理

安装

# Clone the repository git clone https://github.com/yannbam/fresh-js-mcp.git cd fresh-js-mcp # Install dependencies npm install # Build the project npm run build

用法

# Start the MCP server npm start

可用工具

  • 执行:运行一次 JavaScript 代码并返回结果
  • createSession :创建一个新的 REPL 会话
  • executeInSession :在现有会话中执行代码
  • listSessions :列出所有活动的 REPL 会话
  • deleteSession :删除 REPL 会话

发展

# Run in development mode with hot reloading npm run dev # Lint the code npm run lint # Run tests npm test

建筑学

JavaScript MCP 服务器遵循分层架构:

  1. MCP 协议层:处理客户端通信
  2. JavaScript 执行层:在隔离环境中执行代码
  3. 资源管理层:管理包和 TypeScript
  4. 会话管理层:通过状态持久性维护 REPL 会话

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

允许 AI 模型通过模型上下文协议工具调用运行 JavaScript/TypeScript 代码,支持一次性脚本执行和带有 npm 包集成的状态 REPL 会话。

  1. 特征
    1. 安装
      1. 用法
        1. 可用工具
      2. 发展
        1. 建筑学
          1. 执照

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A TypeScript implementation of a Model Context Protocol server that provides a frictionless framework for developers to build and deploy AI tools and prompts, focusing on developer experience with zero boilerplate and automatic tool registration.
              Last updated -
              6
              TypeScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              A server that enables AI assistants to execute JavaScript code with persistent context through stateful REPL sessions, file operations, and package management features.
              Last updated -
              TypeScript
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol implementation for managing and serving AI prompts with a TypeScript-based architecture in a monorepo structure.
              Last updated -
              28,526,583
              2
              TypeScript
            • A
              security
              A
              license
              A
              quality
              A TypeScript-based Model Context Protocol toolkit that enables AI to interact with code files, manage translations, build projects, and search for files and code content.
              Last updated -
              33
              43
              5
              TypeScript
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/yannbam/fresh-js-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server