MCP.so
登录

[Template] MCP Server

@larryhudson

基本信息

分类

媒体与设计

许可证

MIT license

传输方式

stdio

作者

larryhudson

关于 [Template] MCP Server

暂无概览

[Template] MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "figma-mcp-server-larryhudson": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector",
        "npx",
        "tsx",
        "src/index.ts"
      ]
    }
  }
}

[Template] MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is [Template] MCP Server?

It is a template project for building Model Context Protocol (MCP) servers. It provides a starting structure for adding custom tool definitions, configuring environment variables, and publishing the server as an npm package. It is intended for developers who want to create new MCP-compatible integrations.

How to use [Template] MCP Server?

Developers add tool definitions in src/index.ts, update the placeholder information in package.json, and build the server with npm run build. They can test the server locally using the @modelcontextprotocol/inspector library. After testing, they publish the package to npm with npm login and npm publish --access public. To run the server, users set an API key as an environment variable (API_KEY_ENV_VAR) and add the MCP configuration to their client (e.g., VS Code or Claude).

Key features of [Template] MCP Server

  • Template for creating custom MCP servers
  • Instructions for setup with VS Code and Claude
  • Environment variable configuration for API keys
  • Built with TypeScript and the MCP framework
  • Tool definitions added in a single file (src/index.ts)
  • Supports publishing to npm

Use cases of [Template] MCP Server

  • Creating a private MCP server for a specific API or data source
  • Prototyping new MCP tools before integrating them into production
  • Learning how to build and package MCP servers
  • Sharing custom MCP tools with the community via npm

常见问题

1

What does this server do out of the box?

This server is a template with no pre‑defined tools. Developers must add their own tool implementations to make it functional.

2

How do I add tools to this server?

Add tool definitions and implementations in `src/index.ts`. The file is the single entry point for all tool logic.

3

What are the runtime requirements?

You need Node.js and `npx` (to run the server via npm). The server is built with TypeScript and uses the MCP SDK.

4

How can I test the server before publishing?

Run `npx @modelcontextprotocol/inspector npx tsx src/index.ts` to start the inspector and test tools locally.

5

How is the API key provided to the server?

The API key must be set as the environment variable `API_KEY_ENV_VAR`, either in the MCP client’s configuration or directly in the shell. The exact name of this variable is defined in the template’s configuration.

评论

媒体与设计 分类下的更多 MCP 服务器