fastgeoapi 标志

fastgeoapi

组织
geobeyond

Serve OGC APIs, CNG formats on object storage first — no conversion step. With OAuth2/OIDC, a reloadable configuration, and an MCP endpoint. Built on pygeoapi.

发布者geobeyond
代码仓库fastgeoapi
语言Python
复刻数
8
星标数
48
可用工具
0
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    fastgeoapi 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 48 个 Star 和 8 个 Fork。

fastgeoapi

OGC APIs on top of cloud-native geospatial formats. Your data is already GeoParquet, PMTiles or COG in a bucket, and something still needs a standard API in front of it: QGIS, a browser, a partner, an agent. fastgeoapi serves one straight from those formats, where they are — no load into a database, no pre-cut tile tree, no second copy to keep in step — with pygeoapi as the engine.

Serving a cloud-native format means reading it in ranges over the network, so the request path is async-first: those reads are awaited together rather than parking a thread each. Authentication, authorization and an MCP endpoint for AI agents come with it 🗺️🔒.

PyPI Status Python License

Documentation Tests Contract Tests ZAP Scan Codecov Install the demo MCP server

pre-commit Ruff uv

What fastgeoapi adds to pygeoapi

fastgeoapi is not a fork: pygeoapi is the engine, and fastgeoapi tracks its releases. Everything you can serve with pygeoapi you can serve here, with the same responses. What changes is which formats can be a collection without being converted first, how the server reaches them, and what stands in front.

Areapygeoapifastgeoapi
🧊 GeoParquets3:// via s3fs, no CQL2any cloud, full CQL2 pushed down into DuckDB
🗺️ Vector tilespre-cut directories, databases, a proxyPMTiles archives read in place from any cloud, by range
⚡ Reads over the wireevery handler on a five-thread executorranged reads awaited together; threads left to CPU-bound work
☁️ Configurationa local file named by PYGEOAPI_CONFIGany object store: S3, GCS, Azure, Tigris, local
♻️ Reconfigurationrestart the processPOST /admin/config/reload, atomic swap
🔐 Authenticationnot in scopeOIDC/JWT with JWKS, API keys, OPA policies
🤖 AI agents—MCP server over the same API, with its own OAuth authorization server
🧭 Route tableevery route of every specificationonly the specifications your configuration exposes
♲ Provider instancesrebuilt on every requestreused, with an explicit thread-safety opt-in

Three numbers from the measurements behind those rows: a bbox query on Overture's division-areas (4.47 GB, read from Europe) went from 44 s to 0.9 s once warm; twenty vector tiles that take 8–11 s one at a time come back in 1.7–2.6 s with eight awaited together, on a single vCPU; and reusing provider instances took HTTP latency from 73 ms to 24 ms.

👉 What fastgeoapi adds to pygeoapi explains each row, with links to the how-to guides.

Architecture

This diagram gives an overview of the basic architecture:

general architecture

Features

🧊 Cloud-Native Geospatial, served as an OGC API

  • GeoParquet collections, queried in place - DuckDB with the spatial extension reads the file where it sits; bbox, datetime, property filters and full CQL2 (text and JSON, spatial predicates included) become SQL pushed into the engine, so the network carries the answer and not the dataset
  • PMTiles archives as a tile collection - one file of any size, read by byte range: Overture's 18 GB places.pmtiles is a collection with no copy on the server, and a tile costs one ranged read once its directory is cached
  • Any object store, one code path - S3, GCS, Azure, Tigris, MinIO or a local path, with per-dataset region, endpoint and anonymous access; the configuration document itself can live in the same bucket
  • No ETL step in the middle - nothing is loaded into a database or pre-cut into a tile tree, so there is no second copy to keep in step with the first
  • Cloud Optimized GeoTIFF, worked end to end - the provider pattern applied to a real COG with async-geotiff, in the contributor guide, for the format we do not ship a provider for
  • Locality measured, not assumed - same-region and cross-region numbers are published, so staging an extract is a decision with figures behind it

⚡ Async-first, where waiting is the cost

  • One awaited route - tile data is served on the event loop when the provider says it can be; everything else keeps pygeoapi's behaviour byte for byte
  • A pattern, not a fork - AsyncProviderMixin gives a provider a second face beside its synchronous one, which pygeoapi's own chain goes on using
  • Sans-I/O cores - reading an archive is written as a generator that asks for byte ranges; a blocking driver and an awaiting driver feed the same code, so one implementation serves both faces
  • A storage layer that speaks ranges - with single-flight de-duplication: a cold burst of fifty tiles went from 245 ranged reads to 54
  • A guard in the test suite - blockbuster fails any test that blocks the loop, so async stays a property of the code rather than an intention
  • Honest about where it does not apply - DuckDB scanning GeoParquet is CPU-bound work, so it is dispatched to a thread; awaiting it would change the syntax and nothing else

🔐 Security & Authentication

  • OpenID Connect (OIDC) Integration - OAuth2/JWT Bearer token authentication with JWKS support
  • API Key Authentication - Flexible API key-based authentication for programmatic access
  • Open Policy Agent (OPA) - Policy-based authorization with fine-grained access control
  • Multi-scheme Support - Seamlessly switch between authentication methods based on your needs

🤖 AI Agents (MCP)

  • Integrated MCP Server - Your OGC API exposed as Model Context Protocol tools, generated from the OpenAPI document — a new collection becomes callable with no tool definition to write
  • In-process, not a second API - MCP reaches pygeoapi over an ASGI transport: no network hop, no internal API key
  • Own OAuth Authorization Server - An OIDC proxy fronting any IdP: PKCE, Dynamic Client Registration (RFC 7591), Protected Resource Metadata (RFC 9728), refresh-token rotation
  • CIMD & enterprise identity - Client ID Metadata Document exercised in production by Claude; EMA/ID-JAG under verification
  • Stateless transport - Restarts, redeploys and autosuspend are transparent to connected clients

⚙️ Configuration You Can Change Safely

  • Configuration editor - fastgeoapi config edit opens a local editor for the pygeoapi document, on loopback only
  • Two views, one document - a schema-driven form and a YAML editor; the form never overwrites keys the schema does not describe
  • Dry run before saving - builds the whole API from your candidate configuration and reads one item per collection, so a broken source is found before it is served
  • Writing is not activating - the editor mounts no reload webhook: putting a configuration into service stays a separate, deliberate gesture
  • JSON endpoints too - the same checks run from curl or in CI, with no browser involved

🧰 The stack underneath

  • FastAPI and Starlette - the ASGI application pygeoapi is mounted into, built programmatically rather than at import time
  • Modern Python - 3.12+, typed throughout, checked with ty in CI
  • uv - one lockfile for the application, the tools and the container image

🗺️ Geospatial API Standards

  • OGC API Compliance - Features, Tiles, Processes, Records, EDR and STAC, from pygeoapi unchanged
  • Only what you configured - the route table and /conformance are built from your resources, so they describe what this server can really do
  • OpenAPI Integration - auto-generated, with the security schemes of the chain you configured and external $refs resolved deterministically
  • Standards on top of cloud-native data - the same conformance classes whether a collection is a local GeoJSON file or a 18 GB PMTiles archive in a bucket

🛡️ Security Testing & Quality

  • Contract Testing - Automated OpenAPI contract validation with Schemathesis
  • Security Scanning - OWASP ZAP integration for continuous security testing
  • Pre-commit Hooks - Code quality checks with Ruff formatting and linting
  • Comprehensive Test Coverage - Full test suite with pytest and coverage reporting

📋 OGC API Conformance

  • Specification Validation - Automated validation against OGC API standards using ogcapi-registry
  • OpenAPI Document Verification - Ensures generated OpenAPI documents conform to OGC API specifications
  • Conformance Class Reporting - Detailed reports on declared conformance classes (OGC API - Features, Common, GeoJSON, etc.)
  • CI/CD Integration - Continuous validation on every deployment to the demo server

Live Demo

A public demo server is available at https://fastgeoapi.fly.dev/geoapi.

🔐 The API endpoints are protected with OAuth2 client-credentials flow, showcasing fastgeoapi's enterprise-ready security features. This allows you to test the full authentication workflow in a real environment.

The Swagger UI documentation is publicly accessible without authentication at https://fastgeoapi.fly.dev/geoapi/openapi, allowing you to explore the API specification and available endpoints before authenticating.

Getting an Access Token

The demo server requires OAuth2 authentication. To obtain an access token:

bash
curl -X POST https://76hxgq.logto.app/oidc/token \
  -H "Authorization: Basic czRyZjIzbnlucmNvdGM4NnhuaWVxOlc2RHJhQWJ1MTZnb29yR0xWSE02WFlSUnI4aWpObUww" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials&resource=https://fastgeoapi.fly.dev/geoapi/&scope=openid profile ci"

Using the Access Token

Once you have the token, include it in your requests:

bash
# Get the landing page
curl -H "Authorization: Bearer <your_access_token>" \
  "https://fastgeoapi.fly.dev/geoapi/?f=json"

# List collections
curl -H "Authorization: Bearer <your_access_token>" \
  "https://fastgeoapi.fly.dev/geoapi/collections?f=json"

# Check conformance
curl -H "Authorization: Bearer <your_access_token>" \
  "https://fastgeoapi.fly.dev/geoapi/conformance?f=json"

Requirements

  • pygeoapi
  • fastapi-opa
  • An OpenID Connect provider (Keycloak, WSO2, etc)
  • Open Policy Agent (OPA)

Installation

You can install fastgeoapi via pip from PyPI:

shell
pip install fastgeoapi

Development

Prerequisites

Install UV - a fast Python package installer and resolver:

macOS / Linux:

bash
curl -LsSf https://astral.sh/uv/install.sh | sh

Windows (PowerShell):

powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Setup

After cloning the repository, use UV to install dependencies:

shell
git clone https://github.com/geobeyond/fastgeoapi.git
cd fastgeoapi
uv sync

This automatically:

  • Creates a virtual environment in .venv
  • Installs all required dependencies including git-based packages from [tool.uv.sources] (pygeoapi master, pygeofilter)
  • Sets up fastgeoapi in development mode

Note: For development, UV uses git-based dependencies defined in [tool.uv.sources] to get the latest features from upstream projects. The PyPI release uses stable published versions. See uv.md for more details.

Activate the Virtual Environment

macOS / Linux:

bash
source .venv/bin/activate

Windows (PowerShell):

powershell
.venv\Scripts\Activate.ps1

Running fastgeoapi

Once Keycloak and OPA have been started, configure the required environment variables:

shell
export PYGEOAPI_CONFIG=pygeoapi-config.yml
export PYGEOAPI_OPENAPI=pygeoapi-openapi.yml
export FASTGEOAPI_CONTEXT='/geoapi'

Start fastgeoapi in development mode:

shell
uv run fastapi run app/main.py --app app --host 0.0.0.0 --port 5000 --reload

Quick Start (Package Installation)

Install fastgeoapi:

shell
pip install fastgeoapi

Create a .env file with the required configuration:

shell
# Environment state: 'dev' or 'prod'
ENV_STATE=dev

# Server configuration
HOST=0.0.0.0
PORT=5000

# Logging (required)
DEV_LOG_PATH=/tmp
DEV_LOG_FILENAME=fastgeoapi.log
DEV_LOG_LEVEL=debug
DEV_LOG_ENQUEUE=true
DEV_LOG_ROTATION=1 days
DEV_LOG_RETENTION=1 months

# Pygeoapi configuration
DEV_PYGEOAPI_BASEURL=http://localhost:5000
DEV_PYGEOAPI_CONFIG=pygeoapi-config.yml
DEV_PYGEOAPI_OPENAPI=pygeoapi-openapi.yml
DEV_FASTGEOAPI_CONTEXT=/geoapi

# Authentication (choose one, all others must be false)
DEV_API_KEY_ENABLED=false
DEV_JWKS_ENABLED=false
DEV_OPA_ENABLED=false

Start the server:

shell
fastgeoapi run

With options:

shell
fastgeoapi run --host 0.0.0.0 --port 5000 --reload

Edit the configuration, with a form and a YAML view side by side:

shell
fastgeoapi config edit
fastgeoapi config edit --source s3://my-bucket/pygeoapi-config.yml

It prints a per-run token and an address to open. It stays on loopback, and it can write a configuration but never put one into service — see the command line and editing the configuration.

See the Getting Started guide for complete setup instructions including authentication options and examples.

Common UV Commands

bash
# Update dependencies
uv sync --upgrade

# View installed packages
uv pip list

# Install a new package
uv pip install package-name

# Install dev dependencies
uv pip install --group dev

For more details, see uv.md.

Release Workflow

This project uses a branching strategy with automated releases:

BranchTargetDescription
developTestPyPIDevelopment releases with .dev suffix
mainPyPIProduction releases when version is bumped

Development Releases

Push to develop branch triggers automatic publishing to TestPyPI:

bash
git checkout develop
# Make changes
git commit -m "feat: add new feature"
git push origin develop

The workflow automatically creates a dev version (e.g., 0.0.4.dev.1733912345) and publishes to TestPyPI.

Production Releases

To create a production release on PyPI:

  1. Update the version in pyproject.toml
  2. Merge to main branch
  3. The workflow detects the version change, creates a git tag, and publishes to PyPI
bash
# Update version in pyproject.toml to e.g., 0.0.4
git checkout main
git merge develop
git push origin main

Both workflows use Trusted Publisher (OIDC) for secure, tokenless authentication with PyPI/TestPyPI.

Usage

Please see the Command-line Reference for details.

Please have a look at the docker-compose.yml file under scripts/iam to start the stack with Keycloak and Open Policy Agent locally. There is a README.md file that explains how to use it.

The file scripts/iam/keycloak/realm-export.json can be used to import an already configured realm into Keycloak.

The files under scripts/postman can be used to setup Postman with a configuration that is ready to perform the requests for the whole stack.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, fastgeoapi is free and open-source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

MCP Server (Model Context Protocol)

fastgeoapi includes an optional integrated MCP server that exposes OGC API endpoints as tools for AI assistants and LLM-based applications. The MCP server is built using FastMCP and automatically generates tools from the pygeoapi OpenAPI specification.

Features

  • Automatic Tool Generation - Tools are generated from the OGC API OpenAPI spec
  • OAuth Authentication - Supports OIDC authentication with any OAuth provider (Logto, Auth0, Keycloak, etc.)
  • RFC 9728 Compliant - Implements OAuth 2.0 Protected Resource Metadata
  • Dynamic Client Registration - Compatible with mcp-remote and other MCP clients
  • Provider Agnostic - Works with any OIDC-compliant IdP via fastmcp's OIDCProxy (Logto, Auth0, Keycloak, etc.)
  • Stateless Streamable HTTP - Every request is self-contained: machine suspends and redeploys are transparent to connected clients
  • Server card (SEP-2127) - Every deployment with MCP enabled publishes /.well-known/mcp-server-card, so install choosers and clients configure themselves from one document

Enabling the MCP Server

To enable the MCP server, set the FASTGEOAPI_WITH_MCP environment variable:

shell
# In your .env file
DEV_FASTGEOAPI_WITH_MCP=true

# Or for production
PROD_FASTGEOAPI_WITH_MCP=true

The MCP server will be mounted at /mcp endpoint.

Configuration

Basic Configuration (No Authentication)

shell
# .env file
ENV_STATE=dev
DEV_FASTGEOAPI_WITH_MCP=true
# Explicit opt-in: without authentication configured, MCP refuses to
# start unless you acknowledge the unauthenticated (passthrough) mode.
DEV_FASTGEOAPI_MCP_ALLOW_UNAUTHENTICATED=true
DEV_PYGEOAPI_CONFIG=pygeoapi-config.yml
DEV_PYGEOAPI_OPENAPI=pygeoapi-openapi.yml

With OAuth Authentication

To enable OAuth authentication for the MCP server, configure JWKS:

shell
# .env file
ENV_STATE=dev
DEV_FASTGEOAPI_WITH_MCP=true
DEV_JWKS_ENABLED=true
DEV_OIDC_WELL_KNOWN_ENDPOINT=https://your-idp.example.com/.well-known/openid-configuration
DEV_OIDC_CLIENT_ID=your-client-id
DEV_OIDC_CLIENT_SECRET=your-client-secret

# Optional MCP OAuth tuning (see docs/mcp/configuration.md for details)
# Consent screen behavior: always | remember | external | never
DEV_FASTGEOAPI_MCP_CONSENT_MODE=remember
# Client-facing access-token lifetime, decoupled from the IdP expires_in
DEV_FASTGEOAPI_MCP_ACCESS_TOKEN_EXPIRY_SECONDS=86400

The requested scopes include offline_access by default, so the IdP issues a refresh token and MCP clients can renew silently instead of re-running the browser authorization on every token expiry (make sure your IdP allows that scope for the client).

Security & Authentication Flows

The MCP server supports multiple security configurations depending on your deployment needs.

Supported OAuth 2.0 Flows

FlowUse CaseConfiguration
Authorization Code + PKCEInteractive clients (Claude Desktop, mcp-remote)JWKS_ENABLED=true with OIDC config
Client CredentialsMachine-to-machine, service accountsJWKS_ENABLED=true with OIDC config
Dynamic Client Registration (DCR)Auto-registration for MCP clientsEnabled automatically with OIDC

OAuth Proxy Architecture

When OAuth is enabled, the MCP server acts as an OAuth Proxy implementing:

  • RFC 8414 - OAuth 2.0 Authorization Server Metadata
  • RFC 9728 - OAuth 2.0 Protected Resource Metadata
  • RFC 7636 - Proof Key for Code Exchange (PKCE)
  • RFC 7591 - OAuth 2.0 Dynamic Client Registration
┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│   MCP Client    │────▶│   MCP Server    │────▶│   Identity      │
│  (mcp-remote)   │     │  (OAuth Proxy)  │     │   Provider      │
└─────────────────┘     └─────────────────┘     └─────────────────┘
        │                       │                       │
        │  1. Discovery         │                       │
        │──────────────────────▶│                       │
        │  /.well-known/...     │                       │
        │                       │                       │
        │  2. DCR (register)    │                       │
        │──────────────────────▶│                       │
        │                       │                       │
        │  3. Authorization     │  4. Redirect to IdP   │
        │──────────────────────▶│──────────────────────▶│
        │                       │                       │
        │                       │  5. Auth Code         │
        │                       │◀──────────────────────│
        │  6. Token Exchange    │                       │
        │◀──────────────────────│                       │
        │                       │                       │
        │  7. MCP Requests      │  8. In-process ASGI   │
        │  (with Bearer token)  │     call to pygeoapi  │
        │──────────────────────▶│──────────────────────▶│

Security Features

FeatureDescription
JWT ValidationTokens are validated using JWKS from the IdP
Opaque Token SupportSupports IdPs that return opaque tokens (e.g., Logto without API Resources)
RFC 6750 ComplianceProper error handling for missing vs invalid tokens
In-Process Internal CallsMCP-to-pygeoapi calls run in-process via httpx.ASGITransport on a non-routable virtual host — no bypass key or header exists
Scope ValidationConfigurable required scopes for access control

Supported Identity Providers

The MCP server is provider-agnostic and works with any OIDC-compliant IdP:

  • Logto - Tested with OAuth proxy and DCR
  • Auth0 - Full OIDC support
  • Keycloak - Full OIDC and OPA integration
  • Okta - Standard OIDC flows
  • Azure AD - Microsoft identity platform
  • Google - Google OAuth 2.0

Using the MCP Server

The shortest way in is the install badge at the top of this page: it reads the demo's server card and shows the install path for your client — deep link, command line, config snippet or connector walkthrough. The demo's login accepts GitHub accounts. Your own deployment publishes its own card; see the how-to.

With Claude Desktop (native connector, recommended)

Claude Desktop supports remote MCP servers natively as custom connectors — no local shim or config-file edit required:

  1. Open Settings → Connectors → Add custom connector
  2. Paste the server URL: https://your-domain.com/mcp/ (trailing slash optional)
  3. Complete the OAuth login in the browser popup on first use

If an older mcp-remote-based entry for the same server is still in claude_desktop_config.json, remove it — the two clients race through the OAuth flow and can leave the tools list stuck.

With stdio-only clients (mcp-remote)

For MCP clients that only speak stdio, front the server with mcp-remote:

json
{
  "mcpServers": {
    "fastgeoapi": {
      "command": "npx",
      "args": ["mcp-remote", "https://your-domain.com/mcp/"]
    }
  }
}

For local development over plain HTTP, add the --allow-http flag. Note that mcp-remote keeps tokens only in process memory, so every restart re-runs the full OAuth dance.

Direct Streamable HTTP Connection

The server speaks MCP over the Streamable HTTP transport (the legacy /mcp/sse endpoint no longer exists) and negotiates the protocol version per connection, so both the sessionless 2026-07-28 revision and the earlier handshake work. Clients with native remote MCP support connect directly to:

http://localhost:5000/mcp/

Available Tools

The MCP server exposes all OGC API endpoints as tools. Names come from the OpenAPI operationIds, so collection-specific tools embed the collection name (the demo configuration yields 27 tools). For example:

ToolDescription
getLandingPageGet the API landing page
getConformanceDeclarationGet OGC API conformance classes
getCollectionsList all feature collections
describeLakesCollectionGet metadata for the lakes collection
getLakesFeaturesQuery features from the lakes collection
getLakesFeatureGet a specific lakes feature by ID
getProcessesList available processes (if OGC API - Processes is enabled)

OAuth Discovery Endpoints

When OAuth is enabled, the following RFC-compliant endpoints are available:

EndpointDescription
/.well-known/oauth-protected-resource/mcp/Protected resource metadata (RFC 9728)
/.well-known/oauth-authorization-server/mcpAuthorization server metadata (RFC 8414, path-aware)
/.well-known/openid-configurationOIDC discovery alias (fastmcp >= 3.4)

Architecture

┌─────────────────────────────────────────────────────────┐
│                    Claude Desktop                        │
│                    or MCP Client                         │
└─────────────────────┬───────────────────────────────────┘
                      │ MCP Protocol (Streamable HTTP)
                      ▼
┌─────────────────────────────────────────────────────────┐
│                   fastgeoapi                             │
│  ┌───────────────────────────────────────────────────┐  │
│  │              MCP Server (/mcp)                     │  │
│  │  ┌─────────────┐  ┌─────────────┐  ┌───────────┐  │  │
│  │  │ OAuth Proxy │  │ Tool Router │  │ HTTP      │  │  │
│  │  └─────────────┘  └─────────────┘  └───────────┘  │  │
│  └───────────────────────────────────────────────────┘  │
│                          │                               │
│                          ▼                               │
│  ┌───────────────────────────────────────────────────┐  │
│  │           pygeoapi OGC API (/geoapi)              │  │
│  └───────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────────┘

Credits

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

安装

TypingMind
{
  "mcpServers": {
    "fastgeoapi": {
      "command": "fastgeoapi",
      "args": []
    }
  }
}

将 fastgeoapi MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 fastgeoapi 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 fastgeoapi 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 fastgeoapi MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "fastgeoapi": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 fastgeoapi MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 fastgeoapi MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 fastgeoapi 帮我完成这项任务吗?
fastgeoapi
当然。我已阅读。
以下是我使用 fastgeoapi 得到的结果。

常见问题

fastgeoapi MCP 服务器有什么用途?

fastgeoapi 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 fastgeoapi MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 fastgeoapi,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 fastgeoapi MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 fastgeoapi 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 fastgeoapi MCP 连接到 TypingMind?

fastgeoapi 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

fastgeoapi MCP 在 TypingMind 中提供哪些工具?

fastgeoapi 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 fastgeoapi MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 fastgeoapi 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇