
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

An MCP server offering a unified API for Anthropic and OpenAI models with tool calling, web search, and image generation tools.
MCP server with a unified API for multiple AI providers and built-in tools is cataloged as an MCP server attributed to infinyte. An MCP server offering a unified API for Anthropic and OpenAI models with tool calling, web search, and image generation tools. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server with a unified API for multiple AI providers and built-in tools are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It supports Anthropic and OpenAI models through a unified API.
It uses MongoDB for persistence and state management.
README.md · e400c7ef7021 · 采集于 2026-11-13 11:42:48 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A simple server implementation for the Model Context Protocol that provides a unified API for multiple AI model providers.
# Clone the repository
git clone <repository-url>
cd testmcp
# Install dependencies
npm install
# Run the interactive setup
npm run setup
The setup script will guide you through configuring the necessary API keys:
ANTHROPIC_API_KEY - For Claude modelsOPENAI_API_KEY - For GPT models and DALL-E image generationSTABILITY_API_KEY - For Stable Diffusion image generationGOOGLE_CSE_API_KEY and GOOGLE_CSE_ID - For web search functionalityBING_SEARCH_API_KEY - For fallback web searchYou can also manually edit the .env file if you prefer.
The MCP server uses MongoDB for data persistence. You have several options for setting up MongoDB:
Run the MongoDB setup script, which will guide you through the process:
# Run the MongoDB setup script
npm run setup-mongodb
This script will:
The easiest way to get started with MongoDB is to use the included Docker Compose configuration:
# Start MongoDB and Mongo Express in Docker
docker compose up -d
# Update your .env file with the connection string
echo "MONGODB_URI=mongodb://mcpuser:mcppassword@localhost:27017/mcp-server" >> .env
MongoDB will be available at mongodb://mcpuser:mcppassword@localhost:27017/mcp-server
Mongo Express (web admin) will be available at http://localhost:8081
If you prefer to install MongoDB locally:
.env file with:
MONGODB_URI=mongodb://localhost:27017/mcp-server
For production use, MongoDB Atlas is recommended:
.env file:
MONGODB_URI=mongodb+srv://<username>:<password>@<cluster>.mongodb.net/mcp-server?retryWrites=true&w=majority
To migrate existing data to MongoDB:
# Run the migration script
npm run migrate-mongodb
This script will:
# Interactive startup (checks for API keys)
npm start
# Development mode with auto-reload
npm run dev
# Quick start (skips environment checks)
npm run quick-start
# Start server with PM2 process manager
npm run pm2:start
# Start server with PM2 in production mode
npm run pm2:start:prod
The server will be running at http://localhost:3000 (or the port you specified in .env).
Standard Start (npm start):
Development Mode (npm run dev):
Quick Start (npm run quick-start):
PM2 Production Mode (npm run pm2:start:prod):
The server can be run with PM2, a production process manager for Node.js applications. PM2 provides features like:
# Start the server with PM2
npm run pm2:start
# Start in production mode
npm run pm2:start:prod
# View logs
npm run pm2:logs
# Monitor performance
npm run pm2:monit
# Restart the server
npm run pm2:restart
# Stop the server
npm run pm2:stop
# Remove the server from PM2
npm run pm2:delete
The PM2 configuration is stored in ecosystem.config.js. You can modify this file to change:
POST /mcp/:providerMake requests to AI models through a unified API.
URL Parameters:
provider: The AI provider to use (anthropic or openai)Request Body:
{
"messages": [
{ "role": "user", "content": "Your prompt here" }
],
"model": "claude-3-opus-20240229", // Optional, provider-specific model name
"tools": [...], // Optional, tools for function calling
"context": "System message or context" // Optional
}
OR (Legacy format):
{
"prompt": "Your prompt here",
"model": "claude-3-opus-20240229", // Optional
"context": "System message or context" // Optional
}
Response: Returns the raw response from the provider's API.
GET /tools/availableGet a comprehensive list of all available tools with detailed information.
Query Parameters:
format - Response format: json (default), yaml, table, or htmlcategory - Filter tools by category (optional)enabled - Filter by enabled status: true (default) or falsesearch - Search for tools by name, description, or tagsprovider - Filter tools by provider (e.g., openai, google)limit - Maximum number of tools to return (for pagination)offset - Offset for pagination (default: 0)Response (JSON format):
{
"success": true,
"count": 10,
"metadata": {
"categories": ["web", "image", "utility"],
"providers": ["openai", "anthropic", "internal"],
"totalCount": 24,
"offset": 0,
"limit": 10
},
"tools": [
{
"name": "web_search",
"description": "Search the web for information",
"category": "web",
"version": "1.0.0",
"provider": "google",
"enabled": true,
"parameters": {
"query": {
"type": "string",
"description": "The search query",
"required": true
},
"limit": {
"type": "number",
"description": "Maximum number of results",
"required": false,
"default": 5
}
},
"usage": {
"endpoint": "/tools/web/search",
"method": "POST",
"parameters": { /* same as above */ }
},
"metadata": {
"createdAt": "2023-10-15T12:00:00Z",
"updatedAt": "2024-04-20T09:30:00Z",
"usageCount": 1245
}
}
// ... more tools
]
}
GET /healthHealth check endpoint that returns status 200 if the server is running.
You can create and manage database backups:
# Create a full backup
npm run backup-mongodb
# Create a backup with execution history
npm run backup-mongodb -- --with-executions
# List existing backups
npm run backup-mongodb -- --list
To verify your MongoDB setup:
# Run the database test script
npm run test-mongodb
A test client is included in src/client.js. To run it:
node src/client.js
A simple web interface is available at http://localhost:3000 when the server is running. You can use this to test the API directly from your browser.
The MCP server provides a tools discovery endpoint that allows users and AI agents to programmatically list all available tools:
GET /tools/available - Lists all available tools with detailed information.
Example usage:
# Get all tools in JSON format
curl http://localhost:3000/tools/available
# Get tools in a specific category
curl http://localhost:3000/tools/available?category=web
# Search for image-related tools
curl http://localhost:3000/tools/available?search=image
# Get a formatted HTML page of all tools
curl http://localhost:3000/tools/available?format=html > tools.html
The server includes built-in web search and retrieval tools:
Web Search (/tools/web/search)
query (required), limit (optional)GOOGLE_CSE_API_KEY and GOOGLE_CSE_ID environment variablesBING_SEARCH_API_KEY if Google search failsWeb Content (/tools/web/content)
url (required), useCache (optional)Web Batch (/tools/web/batch)
urls (required array), useCache (optional)The server also includes image generation, editing, and variation tools:
Generate Image (/tools/image/generate)
prompt (required): Detailed description of the imageprovider (optional): openai or stability (defaults to openai)options (optional): Provider-specific optionsEdit Image (/tools/image/edit)
imagePath (required): Path to the image to editprompt (required): Description of the edit to makemaskPath (optional): Path to a mask imageCreate Image Variation (/tools/image/variation)
imagePath (required): Path to the image to create variations ofNote: To use these tools, you need to set API keys in your
.envfile:
- For OpenAI images:
OPENAI_API_KEY- For Stability AI images:
STABILITY_API_KEY- For Web Search:
GOOGLE_CSE_API_KEYandGOOGLE_CSE_ID
The MCP server automatically handles tool calling and execution with AI models. When a model decides to use a tool, the server:
AI models can use the /tools/available endpoint to discover what tools are available and how to use them. This is particularly useful for:
Example system prompt for AI models:
You have access to external tools through the MCP server.
Before using any tools, you should check what tools are available by calling:
GET /tools/available
This will return a list of all available tools with their parameters and usage instructions.
You can then use these tools by following the provided usage patterns.
See the /examples directory for sample code demonstrating tool usage.
To add new AI providers:
server.jsTo add new tools to the server:
/src/tools directorytool-definitions.jsserver.jsGNU MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server with a unified API for multiple AI providers and built-in tools from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-infinyte)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.