my-mcp-server
My MCP Server (para principiantes)
Servidor MCP (Model Context Protocol) creado por ti mismo con:
Módulo de clave API y URL propias a través del archivo
.envHerramientas de ejemplo:
echoycall_my_apiListo para probar con MCP Inspector
Listo para usar directamente en VS Code (GitHub Copilot Chat)
1. Instalar dependencias
npm installRelated MCP server: mcp-server-demo
2. Crear el archivo .env
Copia .env.example a .env y luego complétalo con tu clave API y tu URL:
Copy-Item .env.example .envContenido de .env:
MY_API_KEY=api-key-asli-kamu
MY_API_BASE_URL=https://api.contohkamu.com
MCP_SERVER_NAME=my-mcp-server⚠️ Nunca hagas commit del archivo
.enva git. Este archivo ya se ignora automáticamente mediante.gitignore.
3. Compilar el proyecto
npm run buildEste comando compila el TypeScript de src/ a JavaScript en build/.
4. Probar con MCP Inspector
MCP Inspector es una herramienta visual (navegador) para probar tus herramientas MCP sin necesidad de otro cliente.
npm run inspectorEsto ejecutará npx @modelcontextprotocol/inspector node build/index.js y abrirá el Inspector en el navegador. Desde allí puedes:
Haz clic en la pestaña Tools
Elige la herramienta
echoocall_my_apiCompleta los parámetros, haz clic en Run Tool y mira el resultado
5. Usar directamente en VS Code
El archivo .vscode/mcp.json ya está preparado. Abre la Paleta de comandos → MCP: List Servers → elige my-mcp-server → Start Server. Este servidor lee automáticamente .env mediante envFile.
Estructura del proyecto
├── .env # rahasia kamu (tidak di-commit)
├── .env.example # contoh isi .env
├── .vscode/mcp.json # konfigurasi MCP untuk VS Code
├── src/
│ ├── config.ts # loader environment variable
│ ├── apiClient.ts # modul pemanggilan API eksternal (pakai API key & URL)
│ └── index.ts # server MCP utama + daftar tool
├── package.json
└── tsconfig.jsonAñadir una nueva herramienta
Añade un nuevo bloque server.registerTool("nama_tool", { ... }, async (input) => { ... }) en src/index.ts y vuelve a ejecutar npm run build.
Solución de problemas
Error «Variable de entorno ... no está configurada» → asegúrate de que
.envexista y esté completo.La herramienta
call_my_apifalla → comprueba siMY_API_BASE_URLyMY_API_KEYson correctos y si el endpoint de la API admite la cabeceraAuthorization: Bearer <key>.El Inspector no se abre → asegúrate de haber ejecutado
npm run buildantes.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Remote MCP for 1,500+ APIs. Vault-managed credentials; OAuth or API key. Search, load, and execute.
Email inboxes, webhook URLs, mock APIs and 170+ tools for coding agents over one MCP connection.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables users to expose arbitrary HTTP APIs as configurable MCP tools by defining tool specifications in a JSON configuration file.3-
- FlicenseNot gradedqualityDmaintenanceEnables AI clients to connect to example tools, resources, and prompts over MCP, demonstrating integration with IDEs, chatbots, and agent frameworks.-

automate-mcp-serverofficial
AlicenseNot gradedqualityBmaintenanceEnables building and running MCP servers for Umbraco add-ons, with tools for API interactions, OAuth setup, and testing via MCP Inspector or Claude Code.1MIT- AlicenseNot gradedqualityBmaintenanceEnables developers to build, test, debug, and operate MCP servers from VS Code or CI, while also exposing trusted MCP capabilities to AI agents.MIT