Skip to content

Get started

The MCP Express SDK enables developers to create Tools, prompts or skills rapidly without having to define how the Server exactly operates.

You can refer to the official MCP Servers Documentation for details on MCP Servers.

A new MCP Express Project can be created utilizing the available npm cli.

Terminal window
npm create @mcpexpress <your_project_name>

The newly created project structure should be as follows:

  • Directory.claude Claude Code Scaffolding
    • Directoryskills
      • …
  • Directoryscripts Contains helpful scripts
    • …
  • Directorysrc
    • Directorytools contains tool code
      • say-hello.ts sample tool
    • Directoryprompts contains prompts
      • greet.ts sample prompt
    • Directoryskills contains skills
      • welcome-guests.ts sample skill
    • mcp.ts all tools, prompts, or skills are exported here
  • package.json
  • README.md

Your tools need to be exported within the mcp.ts, we recommend for better organization to define the tools within src/tools and then expose them through mcp.ts. Same is valid for prompts and skills.

You are free to structure your project as it fits your needs, there is no strict requirement that tools need to be defined in a specific file within the tools/ folder, but to enable the runtime to correctly load the contents of the MCP Server all the assets for your server needs to be declared in the src/mcp.ts.

src/mcp.ts
// Entry file: MCP Express bundles it and serves every tool,
// prompt and skill exported here.
export { addNumbers } from "./tools/add-numbers.js";
export { explainConcept } from "./prompts/explain-concept.js";
export { tripExpenseReport } from "./skills/trip-expense-report/skill.js";

You can install third party packages like in any other npm projects using the following command:

Terminal window
npm install <package_name>

These packages are included automatically in the final build when deploying.

To make it easy for your Coding Agents to write code efficiently, our CLI generates along with the project structure, a skill called mcpexpress-builder. Currently our CLI only creates it for Claude within the .claude/skills folder. In case you need it for other agents, you can move it to the respective folder for your scenario.

You can invoke the skill in claude using the following pattern:

Terminal window
/mcpexpress-builder Create a tool for me that does .....

You can find sample projects in our Github